summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/card_image.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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