summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nax.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-09-19nax: Avoid re-parsing NAX data with GetFileType()Lioncash1-10/+18
An instance of the NAX apploader already has an existing NAX instance in memory. Calling directly into IdentifyType() directly would re-parse the whole file again into yet another NAX instance, only to toss it away again. This gets rid of unnecessary/redundant file parsing and allocations.
2018-09-19nax: Avoid unnecessary calls to AsNCA() in IdentifyType()Lioncash1-4/+8
AsNCA() allocates an NCA instance every time it's called. In the current manner it's used, it's quite inefficient as it's making a redundant allocation. We can just amend the order of the conditionals to make it easier to just call it once.
2018-08-25file_sys/crypto: Fix missing/unnecessary includesZach Hilman1-1/+0
2018-08-23file_sys: Cut down on includes and copiesZach Hilman1-0/+2
2018-08-23nax: Add AppLoader_NAX and update loader to support itZach Hilman1-0/+65