Commit Graph

5 Commits (6e4d2e672d1083f29186ea0ddcb33cd634e360e3)

Author SHA1 Message Date
Zach Hilman e948fbf5d0 loader: Add ReadRomFSIVFCOffset to NSP, XCI, and NAX loaders
Fixes errors with certain updates
7 years ago
Lioncash a63e6f9dfd loader: Make the Load() function take a process as a regular reference, not a SharedPtr
A process should never require being reference counted in this
situation. If the handle to a process is freed before this function is
called, it's definitely a bug with our lifetime management, so we can
put the requirement in place for the API that the process must be a
valid instance.
7 years ago
Lioncash 45195a51a7 nax: Avoid re-parsing NAX data with GetFileType()
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.
7 years ago
Zach Hilman a7e8d10969 file_sys: Cut down on includes and copies 7 years ago
Zach Hilman 2164702cf7 nax: Add AppLoader_NAX and update loader to support it 7 years ago