summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/card_image.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* core: Remove unused includesameerj2021-11-041-1/+0
|
* file_sys: Support load game collection (#6582)Feng Chen2021-07-201-6/+12
| | | Adds support for loading games with multiple programs embedded within such as the Dragon Quest 1+2+3 Collection
* file_sys: Resolve cases of variable shadowingLioncash2021-05-021-11/+15
| | | | Brings us closer to enabling -Wshadow as an error in the core code.
* core: loader: Implement support for loading indexed programs.bunnei2020-11-251-2/+3
|
* file_sys: Replace inclusions with forward declarations where applicableLioncash2020-08-231-2/+3
| | | | Same behavior, minus unnecessary inclusions where not necessary.
* crypto: Make KeyManager a singleton classFearlessTobi2020-05-201-2/+2
| | | | | | Previously, we were reading the keys everytime a KeyManager object was created, causing yuzu to reread the keys file multiple hundreds of times when loading the game list. With this change, it is only loaded once. On my system, this decreased game list loading times by a factor of 20.
* card_image: Implement system update commands in XCIZach Hilman2019-10-131-1/+35
|
* card_image: Add accessors for raw partitions in XCIZach Hilman2019-09-231-0/+29
|
* card_image: Lazily load partitions in XCIZach Hilman2019-09-231-20/+31
|
* card_image: Add accessors for gamecard certificateZach Hilman2019-09-211-0/+4
| | | | Used by fsp-srv/IDeviceOperator
* card_image: Add functions to query gamecard update partitionZach Hilman2019-09-211-0/+20
| | | | Includes version and meta title ID, used by fsp-srv/IDeviceOperator
* file_sys/card_image: Remove obsolete TODOLioncash2019-06-121-1/+1
| | | | We already support Rev 1+.
* file_sys/card_image: Deduplicate casts within AddNCAFromPartition()Lioncash2019-06-111-3/+6
| | | | Makes for nicer reading.
* file_sys/card_image: Make bracing consistentLioncash2019-06-111-4/+8
| | | | Makes for more consistent reading.
* file_sys/card_image: Assign collapsed NCA contents directly to ncas memberLioncash2019-06-111-3/+1
| | | | Same thing, significantly less noisy.
* file_sys/card_image: Deduplicate type castLioncash2019-06-111-4/+6
| | | | | Same thing, less duplication. We can also std::move raw into the PartitionFilesystem constructor.
* file_sys/card_image: Get rid of a magic numberLioncash2019-06-111-1/+1
| | | | We can just use the size of the array to dehardcode it.
* file_sys/card_image: Use std::array deduction guidesLioncash2019-06-111-1/+6
| | | | Same thing, less code.
* file_sys: Use common KeyManager in NCA container typesZach Hilman2018-11-021-1/+1
| | | | Creates a single KeyManager for the entire container and then passes it into the NCA constructor, eliminating several unnecessary KeyManager reads.
* vfs: Remove InterpretAsDirectory and related functionsZach Hilman2018-10-191-4/+0
| | | | When writing VFS, it initally seemed useful to include a function to in-place convert container files into directories in one homogenous directory structure, but re-evaluating it now there have been plenty of chances to use it and there has always been a better way. Removing as it is unused and likely will not be used.
* XCI: Add function for checking the existence of the program NCALioncash2018-10-161-4/+6
| | | | | | The only reason the getter existed was to check whether or not the program NCA was null. Instead, we can just provide a function to query for the existence of it, instead of exposing it entirely.
* card_image: Ensure program_nca_status is always initializedLioncash2018-10-031-1/+3
| | | | | | If any of the error paths before the NCA retrieval are taken, it'll result in program_nca_status being left in an inconsistent state. So we initialize it by default with a value indicating an error.
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-7/+8
|
* nsp: Fix error masking issue with XCI filesZach Hilman2018-09-041-3/+3
| | | | Now display correct error instead of catch-all MissingProgramNCA
* card_image: Add program title ID getterZach Hilman2018-09-041-0/+4
|
* nsp: Comply with style and performance guidelinesZach Hilman2018-09-041-0/+1
|
* card_image: Parse XCI secure partition with NSPZach Hilman2018-09-041-7/+26
| | | | Eliminated duplicate code and adds support for Rev1+ carts
* file_sys: Replace includes with forward declarations where applicableLioncash2018-09-041-0/+3
| | | | | Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
* xci: Ignore NCA files with updates in secureZach Hilman2018-08-241-0/+3
|
* xci: Fix error masking issueZach Hilman2018-08-231-0/+9
| | | | Prevents NCA-related errors from being masked into MissingProgramNCA or MissingKeyFile
* Merge pull request #1005 from DarkLordZach/registered-fmtbunnei2018-08-161-0/+4
|\ | | | | file_sys: Add support for registration format
| * card_image: Add accessor for all NCAs in XCIZach Hilman2018-08-121-0/+4
| |
* | loader: Make ResultStatus directly compatible with fmtLioncash2018-08-151-2/+5
| | | | | | | | | | | | | | | | | | We can make the enum class type compatible with fmt by providing an overload of operator<<. While we're at it, perform proper bounds checking. If something exceeds the array, it should be a hard fail, because it's, without a doubt, a programmer error in this case.
* | card_image: Use type aliases to shorten definitionsLioncash2018-08-121-3/+3
| | | | | | | | We have the aliases, so we may as well use 'em.
* | card_image: Simplify return statement of GetSubdirectories()Lioncash2018-08-121-1/+1
|/ | | | | We don't need to write out the construction long-form, we can just let the language itself work it out off the return type.
* loader: Add more descriptive errorsZach Hilman2018-08-101-7/+12
| | | Full list of new errors and descriptions in core/loader/loader.h
* loader: Add icon and title support to XCIZach Hilman2018-08-071-0/+1
|
* Use ErrorEncrypted where applicable and fix no keys crashZach Hilman2018-08-011-0/+1
|
* Add missing includes and use const where applicableZach Hilman2018-08-011-2/+3
|
* Make XCI comply to review and style guidelinesZach Hilman2018-08-011-9/+6
|
* Remove files that are not usedZach Hilman2018-08-011-0/+150