summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nax.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* loader: Resolve instances of variable shadowingLioncash2021-04-271-6/+5
| | | | | Eliminates variable shadowing cases across all the loaders to bring us closer to enabling variable shadowing as an error in core.
* core/loader: Remove dependencies on the global system instanceLioncash2020-09-161-2/+3
| | | | | | | | | Now all that remains is: 18 instances in file_sys code 14 instances in GDB stub code (this can be tossed wholesale) 4 instances in HLE code 2 instances in settings code.
* loader: Move NSO module tracking to AppLoaderZach Hilman2019-05-261-0/+4
| | | Also cleanup of general stuff
* core/core: Move process execution start to System's Load()Lioncash2019-04-121-12/+18
| | | | | | | | | This gives us significantly more control over where in the initialization process we start execution of the main process. Previously we were running the main process before the CPU or GPU threads were initialized (not good). This amends execution to start after all of our threads are properly set up.
* loader: Propagate NCA logo section to ReadBanner and ReadLogoZach Hilman2019-01-151-0/+9
|
* loaders: Make GetFileType() a const qualified member functionLioncash2018-12-051-1/+1
| | | | | | No implementations actually modify instance state (and it would be questionable to do that in the first place given the name), so we can make this a const member function.
* loader: Add ReadRomFSIVFCOffset to NSP, XCI, and NAX loadersZach Hilman2018-10-051-0/+4
| | | | Fixes errors with certain updates
* loader: Make the Load() function take a process as a regular reference, not a SharedPtrLioncash2018-09-291-1/+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.
* nax: Avoid re-parsing NAX data with GetFileType()Lioncash2018-09-191-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.
* nax: Avoid unnecessary calls to AsNCA() in IdentifyType()Lioncash2018-09-191-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.
* file_sys/crypto: Fix missing/unnecessary includesZach Hilman2018-08-251-1/+0
|
* file_sys: Cut down on includes and copiesZach Hilman2018-08-231-0/+2
|
* nax: Add AppLoader_NAX and update loader to support itZach Hilman2018-08-231-0/+65