summaryrefslogtreecommitdiff
path: root/src/core (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | loader: Ignore patches on NRO and DRDGravatar Zach Hilman2018-09-044-0/+11
| |
* | patch_manager: Add usages of patches to ExeFSGravatar Zach Hilman2018-09-045-9/+41
| |
* | file_sys: Add class to manage game patchesGravatar Zach Hilman2018-09-042-0/+132
| | | | | | | | Right now only includes Updates, but should eventually contain all of the other patches we need.
* | file_sys: Add BKTR patching mechanismGravatar Zach Hilman2018-09-042-0/+352
| |
* | content_archive: Add BKTR header parsing to NCAGravatar Zach Hilman2018-09-042-19/+160
| |
* | registration: Add RegisteredCacheUnionGravatar Zach Hilman2018-09-044-0/+164
| | | | | | | | Aggregates multiple caches into one interface
* | game_list: Use RegisteredCacheUnion for installedGravatar Zach Hilman2018-09-041-1/+1
| | | | | | | | Reduces code
* | aes_util: Fix error involving reads of less than 0x10Gravatar Zach Hilman2018-09-041-0/+14
|/ | | | Issues with block size are fixed by making all reads minimum length of 0x10
* main: Only show DRD deprecation warning onceGravatar Zach Hilman2018-09-046-3/+6
|
* control_metadata: Use alternate language names if AmericanEnglish isn't ↵Gravatar Zach Hilman2018-09-042-4/+17
| | | | available
* card_image: Add program title ID getterGravatar Zach Hilman2018-09-042-0/+6
|
* nsp: Comply with style and performance guidelinesGravatar Zach Hilman2018-09-047-29/+48
|
* qt: Add UI support for NSP filesGravatar Zach Hilman2018-09-041-0/+4
|
* registration: Add support for installing NSP filesGravatar Zach Hilman2018-09-042-10/+16
|
* loader: Add AppLoader for NSP filesGravatar Zach Hilman2018-09-042-0/+182
|
* card_image: Parse XCI secure partition with NSPGravatar Zach Hilman2018-09-044-11/+38
| | | | Eliminated duplicate code and adds support for Rev1+ carts
* file_sys: Add Nintendo Submission Package (NSP)Gravatar Zach Hilman2018-09-042-0/+296
|
* drd: Load title ID from program metadataGravatar Zach Hilman2018-09-041-3/+1
| | | | Previously only loaded from control metadata
* loader: Add NSP file type and NSP-specific errorsGravatar Zach Hilman2018-09-042-2/+14
|
* key_manager: Avoid autogeneration if key existsGravatar Zach Hilman2018-09-041-3/+13
|
* Merge pull request #1237 from degasus/optimizationsGravatar bunnei2018-09-042-3/+3
|\ | | | | Optimizations
| * core: Use a raw pointer in GetGPUDebugContext.Gravatar Markus Wick2018-09-042-3/+3
| | | | | | | | This helper is called very often. The memory ownership shall not be transfered, so just return the raw pointer.
* | Merge pull request #1223 from DarkLordZach/custom-nand-sd-dirsGravatar bunnei2018-09-041-0/+2
|\ \ | | | | | | file_sys: Allow for custom NAND/SD directories
| * | settings: Save and load NAND/SD dirs from configGravatar Zach Hilman2018-09-031-0/+2
| | |
* | | Merge pull request #1235 from lioncash/forward-declGravatar bunnei2018-09-0420-26/+62
|\ \ \ | | | | | | | | file_sys: Replace includes with forward declarations where applicable
| * | | file_sys: Replace includes with forward declarations where applicableGravatar Lioncash2018-09-0320-26/+62
| | |/ | |/| | | | | | | | | | Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
* | | Merge pull request #1236 from degasus/microprofileGravatar bunnei2018-09-042-2/+6
|\ \ \ | | | | | | | | Update microprofile scopes.
| * | | Update microprofile scopes.Gravatar Markus Wick2018-09-042-2/+6
| |/ / | | | | | | | | | | | | | | | Blame the subsystems which deserve the blame :) The updated list is not complete, just the ones I've spotted on random sampling the stack trace.
* | | Merge pull request #1230 from lioncash/sslGravatar bunnei2018-09-042-37/+39
|\ \ \ | |/ / |/| | ssl: Move SSL class to cpp file
| * | ssl: Move SSL class to cpp fileGravatar Lioncash2018-09-022-37/+39
| | | | | | | | | | | | | | | | | | This isn't required to be visible to anything outside of the main source file, and will eliminate needing to rebuild anything else including the header if the SSL class needs to be changed in the future.
* | | Merge pull request #1231 from lioncash/globalGravatar bunnei2018-09-035-19/+51
|\ \ \ | | | | | | | | service: Migrate global named port map to the KernelCore class
| * | | service: Migrate global named port map to the KernelCore classGravatar Lioncash2018-09-025-19/+51
| | |/ | |/| | | | | | | | | | | | | Now that we have a class representing the kernel in some capacity, we now have a place to put the named port map, so we move it over and get rid of another piece of global state within the core.
* / | vfs_real: Forward declare IOFileGravatar Lioncash2018-09-027-14/+31
|/ / | | | | | | | | | | Eliminates the need to rebuild some source files if the file_util header ever changes. This also uncovered some indirect inclusions, which have also been fixed.
* | Merge pull request #1213 from DarkLordZach/octopath-fsGravatar bunnei2018-09-022-2/+30
|\ \ | | | | | | filesystem/maxwell_3d: Various changes to boot Project Octopath Traveller
| * | filesystem: Implement OpenReadOnlySaveDataFilesystemGravatar Zach Hilman2018-08-312-1/+7
| | |
| * | filesystem: Add OpenFileSystemWithPatchGravatar Zach Hilman2018-08-312-1/+23
| |/
* / filesystem: Move dir retrieval after path checking in DeleteFile()Gravatar Lioncash2018-09-021-2/+5
|/ | | | | We don't need to do the lookup if the path is considered empty currently.
* core/core: Replace includes with forward declarations where applicableGravatar Lioncash2018-08-3118-43/+85
| | | | | | | | | | | The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
* gl_renderer: Cache textures, framebuffers, and shaders based on CPU address.Gravatar bunnei2018-08-313-38/+17
|
* core: Make the main System class use the PImpl idiomGravatar Lioncash2018-08-314-276/+383
| | | | | | | | | | | | | core.h is kind of a massive header in terms what it includes within itself. It includes VFS utilities, kernel headers, file_sys header, ARM-related headers, etc. This means that changing anything in the headers included by core.h essentially requires you to rebuild almost all of core. Instead, we can modify the System class to use the PImpl idiom, which allows us to move all of those headers to the cpp file and forward declare the bulk of the types that would otherwise be included, reducing compile times. This change specifically only performs the PImpl portion.
* kernel: Eliminate kernel global stateGravatar Lioncash2018-08-2851-440/+665
| | | | | | | | | | | | | | | | | | | | | | As means to pave the way for getting rid of global state within core, This eliminates kernel global state by removing all globals. Instead this introduces a KernelCore class which acts as a kernel instance. This instance lives in the System class, which keeps its lifetime contained to the lifetime of the System class. This also forces the kernel types to actually interact with the main kernel instance itself instead of having transient kernel state placed all over several translation units, keeping everything together. It also has a nice consequence of making dependencies much more explicit. This also makes our initialization a tad bit more correct. Previously we were creating a kernel process before the actual kernel was initialized, which doesn't really make much sense. The KernelCore class itself follows the PImpl idiom, which allows keeping all the implementation details sealed away from everything else, which forces the use of the exposed API and allows us to avoid any unnecessary inclusions within the main kernel header.
* Merge pull request #1193 from lioncash/privGravatar bunnei2018-08-282-8/+8
|\ | | | | gpu: Make memory_manager private
| * gpu: Make memory_manager privateGravatar Lioncash2018-08-282-8/+8
| | | | | | | | | | | | | | | | | | | | Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places.
* | hle/result: Make ResultVal's move constructor as noexceptGravatar Lioncash2018-08-281-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | Many containers within the standard library provide different behaviors based on whether or not a move constructor/assignment operator can be guaranteed not to throw or not. Notably, implementations will generally use std::move_if_noexcept (or an internal implementation of it) to provide strong exception guarantees. If a move constructor potentially throws (in other words, is not noexcept), then certain behaviors will create copies, rather than moving the values. For example, consider std::vector. When a std::vector calls resize(), there are two ways the elements can be relocated to the new block of memory (if a reallocation happens), by copy, or by moving the existing elements into the new block of memory. If a type does not have a guarantee that it will not throw in the move constructor, a copy will happen. However, if it can be guaranteed that the move constructor won't throw, then the elements will be moved. This just allows ResultVal to be moved instead of copied all the time if ever used in conjunction with containers for whatever reason.
* Merge pull request #1177 from lioncash/errGravatar bunnei2018-08-274-12/+15
|\ | | | | kernel/error: Amend several error codes
| * kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHEDGravatar Lioncash2018-08-251-2/+4
| | | | | | | | | | | | We can make this error code an alias of the resource limit exceeded error code, allowing us to get rid of the lingering 3DS error code of the same type.
| * kernel/error: Amend error code for ERR_PORT_NAME_TOO_LONGGravatar Lioncash2018-08-251-2/+1
| | | | | | | | | | We can treat this as an alias of TooLarge for documentation purposes. This also lets us get rid of another lingering 3DS-related error code.
| * kernel/error: Add error code for the handle table being fullGravatar Lioncash2018-08-253-4/+4
| | | | | | | | | | This replaces the lingering 3DS constant with the proper one, and utilizes it within HandleTable's Create() member function.
| * kernel/error: Add error code for invalid memory permissionsGravatar Lioncash2018-08-252-3/+4
| |
| * kernel/error: Correct kernel error code for invalid combinationGravatar Lioncash2018-08-251-1/+2
| |