summaryrefslogtreecommitdiff
path: root/src/core/loader (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* core: hle: kernel: Rename Thread to KThread.Gravatar bunnei2021-01-282-2/+2
|
* main: Resolve error string not displayingGravatar Lioncash2021-01-032-0/+5
| | | | | | | | | During the transition to make the error dialog translatable, I accidentally got rid of the conversion to ResultStatus, which prevented operator<< from being invoked during formatting. This adds a function to directly retrieve the result status string instead so that it displays again.
* vfs: Use existing type aliases consistentlyGravatar Lioncash2020-12-109-9/+9
| | | | | Makes use of the VirtualDir and VirtualFile aliases across the board instead of having a few isolated places that don't use it.
* core: Eliminate remaining usages of the global system instanceGravatar Lioncash2020-11-274-15/+2
| | | | | | Removes all remaining usages of the global system instance. After this, migration can begin to migrate to being constructed and managed entirely by the various frontends.
* core: loader: Implement support for loading indexed programs.Gravatar bunnei2020-11-246-12/+20
|
* patch_manager: Remove usages of the global system instanceGravatar Lioncash2020-11-188-39/+66
| | | | | | | With this, only 19 usages of the global system instance remain within the core library. We're almost there.
* Revert "core: Fix clang build"Gravatar bunnei2020-10-201-18/+17
|
* core: Fix clang buildGravatar Lioncash2020-10-171-17/+18
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* core/CMakeLists: Make some warnings errorsGravatar Lioncash2020-10-134-4/+4
| | | | | | | | | Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
* General: Make use of std::nullopt where applicableGravatar Lioncash2020-09-221-3/+3
| | | | | | | | Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
* file_sys/romfs_factory: Eliminate usage of the global system accessorGravatar Lioncash2020-09-163-6/+6
|
* loader/nso: Remove unnecessary [[maybe_unused]]Gravatar Lioncash2020-09-161-2/+1
|
* core/loader: Remove dependencies on the global system instanceGravatar Lioncash2020-09-1619-44/+84
| | | | | | | | | 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.
* common/fileutil: Convert namespace to Common::FSGravatar Lioncash2020-08-161-1/+1
| | | | | | | | | | | | Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
* common/concepts: Rename IsBaseOf to DerivedFromGravatar Lioncash2020-08-071-1/+1
| | | | | | | | This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well.
* Place in anonymous namespaceGravatar David Marcec2020-08-031-0/+4
|
* loader: Make IdentifyFile typesafeGravatar David Marcec2020-08-031-20/+32
| | | | Relies on #4465 for concept.h Common::IsBaseOf
* loader: nro: Fix process initialization using ProgramMetadata default.Gravatar bunnei2020-04-202-11/+14
|
* loader: elf: Fix process initialization using ProgramMetadata default.Gravatar bunnei2020-04-201-0/+5
|
* loader/nso: Resolve moves not occurring in DecompressSegmentGravatar Lioncash2020-04-171-1/+1
| | | | | | | | Given the std::vector was const, an automatic move out of the function could not occur. We can allow automatic return value optimizations to occur by making the buffer non-const.
* loader: nso: Fix loader size and arguments.Gravatar bunnei2020-04-173-25/+47
|
* loader: elf/kip/nro: Updates for new VMM.Gravatar bunnei2020-04-173-5/+7
|
* core: memory: Move to Core::Memory namespace.Gravatar bunnei2020-04-174-6/+6
| | | | - helpful to disambiguate Kernel::Memory namespace.
* loader: nso: Fix loading of static objects to be properly sized and aligned.Gravatar bunnei2020-04-171-19/+9
|
* core: loader: Remove check for 32-bit.Gravatar bunnei2020-03-021-6/+0
|
* loader: provide default arguments (zero byte) to NSOsGravatar Michael 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.Gravatar 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 processGravatar Zach Hilman2019-09-301-0/+1
|
* nso: Pass build ID directlyGravatar Zach 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 FilesystemControllerGravatar Zach Hilman2019-09-215-5/+15
|
* Merge pull request #2576 from DarkLordZach/nsp-fix-1Gravatar David2019-09-211-14/+13
|\ | | | | nsp: Fix various errors with loading and processing of extracted NSPs
| * nsp: Correct status codes for extracted NSPsGravatar Zach 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 NSPsGravatar Zach Hilman2019-06-101-1/+1
| | | | | | | | Avoids 0 being used as title ID for all extracted NSPs.
* | nro: Implement ReadControlDataGravatar Nick 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 256bytesGravatar Fernando 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 membersGravatar Bakugo2019-07-022-2/+3
| |
* | Merge pull request #2546 from DarkLordZach/kipsGravatar bunnei2019-06-214-1/+157
|\ \ | | | | | | loader, file_sys: Add support for parsing and loading KIP (Kernel Internal Process) files
| * | kernel_executable: Optimize BLZ decompressionGravatar Zach Hilman2019-06-061-4/+8
| | |
| * | loader: Add recognition for KIP file typeGravatar Zach Hilman2019-06-052-0/+11
| | |
| * | loader: Add KIP and INI file parser-specific errorsGravatar Zach Hilman2019-06-052-1/+9
| | |
| * | loader: Add AppLoader_KIP for KIP filesGravatar Zach Hilman2019-06-052-0/+133
| | |
* | | Merge pull request #2482 from DarkLordZach/prepoGravatar bunnei2019-06-2113-0/+64
|\ \ \ | | | | | | | | core: Add detailed local reporting feature for development
| * | | loader: Move NSO module tracking to AppLoaderGravatar Zach Hilman2019-05-2613-3/+64
| | | | | | | | | | | | Also cleanup of general stuff
| * | | core: Track load offsets of NSO modulesGravatar Zach Hilman2019-05-251-0/+3
| | | | | | | | | | | | | | | | Needed for backtrace decomposition
* | | | common/hex_util: Combine HexVectorToString() and HexArrayToString()Gravatar 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/globalGravatar Zach Hilman2019-06-051-11/+0
|\ \ \ | |_|/ |/| | core/telemetry_session: Remove usages of the global system accessor
| * | core/loader: Remove LoadKernelSystemModeGravatar Lioncash2019-05-281-11/+0
| |/ | | | | | | This is a hold-over from Citra and doesn't apply to yuzu.
* / loader/nso: Silence sign-comparison warningGravatar Lioncash2019-05-251-1/+1
|/ | | | | This was previously performing a size_t == int comparison. Silences a -Wsign-compare warning.
* loader/nso: Remove left-in debug pragmaGravatar Lioncash2019-04-301-2/+0
| | | | Unintentionally introduced in 552d5071fa171165e4054392d8bb6bf2ecc924e2
* core/core: Move process execution start to System's Load()Gravatar 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.