summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nsp.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-03loader: Add support for reading the name of game's developerZach Hilman1-0/+7
2018-10-27loader/nsp: Move secondary loader initialization to constructorZach Hilman1-17/+20
Prevents nullptr bug when trying to dump the RomFS of an NSP resulting from secondary_loader not being initialized.
2018-10-09patch_manager: Return a std::unique_ptr from ParseControlNCA() and GetControlMetadata() instead of a std::shared_ptrLioncash1-1/+1
Neither of these functions require the use of shared ownership of the returned pointer. This makes it more difficult to create reference cycles with, and makes the interface more generic, as std::shared_ptr instances can be created from a std::unique_ptr, but the vice-versa isn't possible. This also alters relevant functions to take NCA arguments by const reference rather than a const reference to a std::shared_ptr. These functions don't alter the ownership of the memory used by the NCA instance, so we can make the interface more generic by not assuming anything about the type of smart pointer the NCA is contained within and make it the caller's responsibility to ensure the supplied NCA is valid.
2018-10-05romfs_factory: Extract packed update setter to new functionZach Hilman1-0/+6
2018-10-05loader: Add getter for packed updateZach Hilman1-0/+18
Reads the update included with the game if it has one and adds the new ErrorNoPackedUpdate status.
2018-10-05loader: Add ReadRomFSIVFCOffset to NSP, XCI, and NAX loadersZach Hilman1-2/+6
Fixes errors with certain updates
2018-09-29loader: Make the Load() function take a process as a regular reference, not a SharedPtrLioncash1-3/+1
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.
2018-09-04patch_manager: Centralize Control-type NCA parsingZach Hilman1-15/+5
2018-09-04main: Only show DRD deprecation warning onceZach Hilman1-1/+1
2018-09-04nsp: Comply with style and performance guidelinesZach Hilman1-2/+9
2018-09-04loader: Add AppLoader for NSP filesZach Hilman1-0/+128