summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/card_image.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-13card_image: Implement system update commands in XCIZach Hilman1-1/+35
2019-09-23card_image: Add accessors for raw partitions in XCIZach Hilman1-0/+29
2019-09-23card_image: Lazily load partitions in XCIZach Hilman1-20/+31
2019-09-21card_image: Add accessors for gamecard certificateZach Hilman1-0/+4
Used by fsp-srv/IDeviceOperator
2019-09-21card_image: Add functions to query gamecard update partitionZach Hilman1-0/+20
Includes version and meta title ID, used by fsp-srv/IDeviceOperator
2019-06-12file_sys/card_image: Remove obsolete TODOLioncash1-1/+1
We already support Rev 1+.
2019-06-11file_sys/card_image: Deduplicate casts within AddNCAFromPartition()Lioncash1-3/+6
Makes for nicer reading.
2019-06-11file_sys/card_image: Make bracing consistentLioncash1-4/+8
Makes for more consistent reading.
2019-06-11file_sys/card_image: Assign collapsed NCA contents directly to ncas memberLioncash1-3/+1
Same thing, significantly less noisy.
2019-06-11file_sys/card_image: Deduplicate type castLioncash1-4/+6
Same thing, less duplication. We can also std::move raw into the PartitionFilesystem constructor.
2019-06-11file_sys/card_image: Get rid of a magic numberLioncash1-1/+1
We can just use the size of the array to dehardcode it.
2019-06-11file_sys/card_image: Use std::array deduction guidesLioncash1-1/+6
Same thing, less code.
2018-11-02file_sys: Use common KeyManager in NCA container typesZach Hilman1-1/+1
Creates a single KeyManager for the entire container and then passes it into the NCA constructor, eliminating several unnecessary KeyManager reads.
2018-10-19vfs: Remove InterpretAsDirectory and related functionsZach Hilman1-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.
2018-10-16XCI: Add function for checking the existence of the program NCALioncash1-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.
2018-10-03card_image: Ensure program_nca_status is always initializedLioncash1-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.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-7/+8
2018-09-04nsp: Fix error masking issue with XCI filesZach Hilman1-3/+3
Now display correct error instead of catch-all MissingProgramNCA
2018-09-04card_image: Add program title ID getterZach Hilman1-0/+4
2018-09-04nsp: Comply with style and performance guidelinesZach Hilman1-0/+1
2018-09-04card_image: Parse XCI secure partition with NSPZach Hilman1-7/+26
Eliminated duplicate code and adds support for Rev1+ carts
2018-09-04file_sys: Replace includes with forward declarations where applicableLioncash1-0/+3
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
2018-08-24xci: Ignore NCA files with updates in secureZach Hilman1-0/+3
2018-08-23xci: Fix error masking issueZach Hilman1-0/+9
Prevents NCA-related errors from being masked into MissingProgramNCA or MissingKeyFile
2018-08-15loader: Make ResultStatus directly compatible with fmtLioncash1-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.
2018-08-12card_image: Use type aliases to shorten definitionsLioncash1-3/+3
We have the aliases, so we may as well use 'em.
2018-08-12card_image: Simplify return statement of GetSubdirectories()Lioncash1-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.
2018-08-12card_image: Add accessor for all NCAs in XCIZach Hilman1-0/+4
2018-08-10loader: Add more descriptive errorsZach Hilman1-7/+12
Full list of new errors and descriptions in core/loader/loader.h
2018-08-07loader: Add icon and title support to XCIZach Hilman1-0/+1
2018-08-01Use ErrorEncrypted where applicable and fix no keys crashZach Hilman1-0/+1
2018-08-01Add missing includes and use const where applicableZach Hilman1-2/+3
2018-08-01Make XCI comply to review and style guidelinesZach Hilman1-9/+6
2018-08-01Remove files that are not usedZach Hilman1-0/+150