aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader
Commit message (Collapse)AuthorAgeFilesLines
* core: loader: Remove check for 32-bit.bunnei2020-03-021-6/+0
|
* loader: provide default arguments (zero byte) to NSOsMichael Scire2020-01-222-3/+10
| | | | | | | | | | Certain newer unity games (Terraria, Pokemon Mystery Dungeon) require that the argument region be populated. Failure to do so results in an integer underflow in argument count, and eventually an unmapped read at 0x800000000. Providing this default fixes this. Note that the behavior of official software is as yet unverified, arguments-wise.
* core/loaders: Simplify PhysicalMemory usage.Markus Wick2020-01-183-8/+12
| | | | | It is currently a std::vector, however we might want to replace it with a more fancy allocator. So we can't use the C++ iterators any more.
* core/loader: Track the NSO build ID of the current processZach Hilman2019-09-301-0/+1
|
* nso: Pass build ID directlyZach Hilman2019-09-211-2/+1
| | | As opposed to converting to string and then back to hex array
* yuzu: Port old usages of Filesystem namespace to FilesystemControllerZach Hilman2019-09-215-5/+15
|
* Merge pull request #2576 from DarkLordZach/nsp-fix-1David2019-09-211-14/+13
|\ | | | | nsp: Fix various errors with loading and processing of extracted NSPs
| * nsp: Correct status codes for extracted NSPsZach Hilman2019-06-101-13/+12
| | | | | | | | Avoids all extracted NSPs being marked as error file type because they don't have program NCAs.
| * nsp: Use title ID from NPDM metadata for extracted type NSPsZach Hilman2019-06-101-1/+1
| | | | | | | | Avoids 0 being used as title ID for all extracted NSPs.
* | nro: Implement ReadControlDataNick Renieris2019-09-082-0/+10
| | | | | | | | | | | | With this, the "Developer" field in the Properties for homebrew is now populated. Signed-off-by: Nick Renieris <velocityra@gmail.com>
* | VM_Manager: Align allocated memory to 256bytesFernando Sahmkow2019-07-194-4/+4
| | | | | | | | | | | | This commit ensures that all backing memory allocated for the Guest CPU is aligned to 256 bytes. This due to how gpu memory works and the heavy constraints it has in the alignment of physical memory.
* | file_sys: Rename other ContentRecordType membersBakugo2019-07-022-2/+3
| |
* | Merge pull request #2546 from DarkLordZach/kipsbunnei2019-06-214-1/+157
|\ \ | | | | | | loader, file_sys: Add support for parsing and loading KIP (Kernel Internal Process) files
| * | kernel_executable: Optimize BLZ decompressionZach Hilman2019-06-061-4/+8
| | |
| * | loader: Add recognition for KIP file typeZach Hilman2019-06-052-0/+11
| | |
| * | loader: Add KIP and INI file parser-specific errorsZach Hilman2019-06-052-1/+9
| | |
| * | loader: Add AppLoader_KIP for KIP filesZach Hilman2019-06-052-0/+133
| | |
* | | Merge pull request #2482 from DarkLordZach/prepobunnei2019-06-2113-0/+64
|\ \ \ | | | | | | | | core: Add detailed local reporting feature for development
| * | | loader: Move NSO module tracking to AppLoaderZach Hilman2019-05-2613-3/+64
| | | | | | | | | | | | Also cleanup of general stuff
| * | | core: Track load offsets of NSO modulesZach Hilman2019-05-251-0/+3
| | | | | | | | | | | | | | | | Needed for backtrace decomposition
* | | | common/hex_util: Combine HexVectorToString() and HexArrayToString()Lioncash2019-06-121-2/+2
| |_|/ |/| | | | | | | | | | | | | | These can be generified together by using a concept type to designate them. This also has the benefit of not making copies of potentially very large arrays.
* | | Merge pull request #2526 from lioncash/globalZach Hilman2019-06-051-11/+0
|\ \ \ | |_|/ |/| | core/telemetry_session: Remove usages of the global system accessor
| * | core/loader: Remove LoadKernelSystemModeLioncash2019-05-281-11/+0
| |/ | | | | | | This is a hold-over from Citra and doesn't apply to yuzu.
* / loader/nso: Silence sign-comparison warningLioncash2019-05-251-1/+1
|/ | | | | This was previously performing a size_t == int comparison. Silences a -Wsign-compare warning.
* loader/nso: Remove left-in debug pragmaLioncash2019-04-301-2/+0
| | | | Unintentionally introduced in d6744d9b06a951efaae1c246ce257263648866c5
* core/core: Move process execution start to System's Load()Lioncash2019-04-1117-98/+128
| | | | | | | | | 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.
* Merge pull request #1957 from DarkLordZach/title-providerbunnei2019-04-091-2/+4
|\ | | | | file_sys: Provide generic interface for accessing game data
| * patch_manager: Dump NSO name with build IDZach Hilman2019-03-271-2/+4
| |
* | core: Add missing override specifiers where applicableLioncash2019-04-041-1/+1
| | | | | | | | | | | | | | | | | | Applies the override specifier where applicable. In the case of destructors that are defaulted in their definition, they can simply be removed. This also removes the unnecessary inclusions being done in audin_u and audrec_u, given their close proximity.
* | Merge pull request #2093 from FreddyFunk/disk-cache-better-compressionbunnei2019-04-031-10/+7
|\ \ | | | | | | Better LZ4 compression utilization for the disk based shader cache and the yuzu build system
| * | Addressed feedbackunknown2019-03-291-4/+4
| | |
| * | core: Do not link LZ4 to core. Use common/data_compression for nso segment ↵unknown2019-03-291-10/+7
| |/ | | | | | | decompression instead.
* | Merge pull request #2281 from lioncash/memorybunnei2019-04-013-3/+3
|\ \ | |/ |/| kernel/codeset: Make CodeSet's memory data member a regular std::vector
| * kernel/codeset: Make CodeSet's memory data member a regular std::vectorLioncash2019-03-223-3/+3
| | | | | | | | | | | | | | | | | | | | | | The use of a shared_ptr is an implementation detail of the VMManager itself when mapping memory. Because of that, we shouldn't require all users of the CodeSet to have to allocate the shared_ptr ahead of time. It's intended that CodeSet simply pass in the required direct data, and that the memory manager takes care of it from that point on. This means we just do the shared pointer allocation in a single place, when loading modules, as opposed to in each loader.
* | Merge pull request #2280 from lioncash/nsobunnei2019-03-232-59/+81
|\ \ | | | | | | loader/nso: Minor refactoring
| * | loader/nso: Place translation unit specific functions into an anonymous ↵Lioncash2019-03-221-20/+21
| | | | | | | | | | | | | | | | | | | | | namespace Makes it impossible to indirectly violate the ODR in some other translation unit due to these existing.
| * | loader/nso: Clean up use of magic constantsLioncash2019-03-221-4/+6
| | | | | | | | | | | | | | | Now that the NSO header has the proper size, we can just use sizeof on it instead of having magic constants.
| * | file_sys/patch_manager: Deduplicate NSO headerLioncash2019-03-222-50/+57
| | | | | | | | | | | | | | | | | | This source file was utilizing its own version of the NSO header. Instead of keeping this around, we can have the patch manager also use the version of the header that we have defined in loader/nso.h
| * | loader/nso: Fix definition of the NSO header structLioncash2019-03-221-3/+15
| |/ | | | | | | | | | | | | | | The total struct itself is 0x100 (256) bytes in size, so we should be providing that amount of data. Without the data, this can result in omitted data from the final loaded NSO file.
* / file_sys/cheat_engine: Remove use of global system accessorsLioncash2019-03-221-4/+4
|/ | | | | Instead, pass in the core timing instance and make the dependency explicit in the interface.
* Merge pull request #1933 from DarkLordZach/cheat-enginebunnei2019-03-211-0/+12
|\ | | | | file_sys: Implement parser and interpreter for game memory cheats
| * vm_manager: Remove cheat-specific ranges from VMManagerZach Hilman2019-03-053-11/+4
| |
| * loader/nso: Set main code region in VMManagerZach Hilman2019-03-043-2/+21
| | | | | | | | For rom directories (and by extension, XCI/NSP/NAX/NCA) this is for the NSO with name 'main', for regular NSOs, this is the NSO.
* | kernel: Move CodeSet structure to its own source filesLioncash2019-03-203-0/+3
| | | | | | | | | | | | | | | | Given this is utilized by the loaders, this allows avoiding inclusion of the kernel process definitions where avoidable. This also keeps the loading format for all executable data separate from the kernel objects.
* | loader: Remove Linker classLioncash2019-03-192-183/+0
| | | | | | | | Given the class is now currently unused, it can be removed.
* | loader: Remove Linker inheritance from NRO and NSO loadersLioncash2019-03-192-4/+4
|/ | | | | | Neither the NRO or NSO loaders actually make use of the functions or members provided by the Linker interface, so we can just remove the inheritance altogether.
* loader: Propagate NCA logo section to ReadBanner and ReadLogoZach Hilman2019-01-159-0/+61
|
* web_browser: Add bounds checking to applet interfaceZach Hilman2018-12-282-2/+0
|
* loader: Add accessor for Manual RomFSZach Hilman2018-12-285-0/+30
|
* Merge pull request #1928 from lioncash/capsbunnei2018-12-273-2/+9
|\ | | | | kernel: Handle kernel capability descriptors