aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys
AgeCommit message (Collapse)Author
2018-09-19file-sys: Default heavy-weight class destructors in the cpp fileLioncash
Several classes have a lot of non-trivial members within them, or don't but likely should have the destructor defaulted in the cpp file for future-proofing/being more friendly to forward declarations. Leaving the destructor unspecified allows the compiler to inline the destruction code all over the place, which is generally undesirable from a code bloat perspective.
2018-09-19control_metadata: Remove unnecessary else within GetLanguageEntry()Lioncash
There's no need to indent the code here, given the if case contains a return statement at the end of it.
2018-09-19control_metadata: Move language name array definition to the cpp fileLioncash
This was used in two different translation units (deconstructed_rom_directory and patch_manager). This means we'd be pointlessly duplicating the whole array twice due to it being defined within the header.
2018-09-19xts_archive: Remove unused variables from CalculateHMAC256()Lioncash
These variables aren't used, which still has an impact, as std::vector cannot be optimized away by the compiler (it's constructor and destructor are both non-trivial), so this was just wasting memory.
2018-09-19xts_archive: Make AsNCA() return a std::unique_ptr instead of a std::shared_ptrLioncash
std::shared_ptr isn't strictly necessary here and is only ever used in contexts where the object doesn't depend on being shared. This also makes the interface more flexible, as it's possible to create a std::shared_ptr from a std::unique_ptr (std::shared_ptr has a constructor that accepts a std::unique_ptr), but not the other way around.
2018-09-19xts_archive: Ensure NAX's type member is always initializedLioncash
Ensures that the member always has a deterministic value.
2018-09-19xts_archive: Amend initializer order of NAX's constructorLioncash
Orders the initializer list in the same order the members would be initialized. Avoids compiler warnings.
2018-09-19savedata_factory: Add TemporaryStorage SaveDataTypeZach Hilman
Seems to be used by NSO NES Emulator
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-09-06file_sys/nca_patch: Amend constructor initializer list orderLioncash
Orders the elements in the initializer list in the order they're specified in the class. This prevents compiler warnings about initialization order.
2018-09-06file_sys/nca_patch: Remove unnecessary includesLioncash
romfs.h doesn't need to be included in the header, the only real dependency here is common's swap.h that needs to be included.
2018-09-06file_sys/patch_manager: Add missing includesLioncash
These includes were previously being satisfied indirectly.
2018-09-05Merge pull request #1242 from lioncash/file-sysbunnei
file_sys/submission_package: Replace includes with forward declarations where applicable
2018-09-05file_sys/submission_package: Correct constructor initialization list orderLioncash
Orders the elements in the sequence to match the order in which they'll actually be initialized in.
2018-09-05file_sys/submission_package: Replace includes with forward declarations ↵Lioncash
where applicable
2018-09-04bktr: Fix bucket overlap errorZach Hilman
2018-09-04patch_manager: Centralize Control-type NCA parsingZach Hilman
2018-09-04nsp: Fix error masking issue with XCI filesZach Hilman
Now display correct error instead of catch-all MissingProgramNCA
2018-09-04game_list: Fix version display on non-NAND titlesZach Hilman
2018-09-04bktr: Add logging on successful patchZach Hilman
2018-09-04bktr: Implement IVFC offset shiftingZach Hilman
Fixes base game read errors
2018-09-04bktr: Fix missing includes and optimize styleZach Hilman
2018-09-04patch_manager: Add usages of patches to ExeFSZach Hilman
2018-09-04file_sys: Add class to manage game patchesZach Hilman
Right now only includes Updates, but should eventually contain all of the other patches we need.
2018-09-04file_sys: Add BKTR patching mechanismZach Hilman
2018-09-04content_archive: Add BKTR header parsing to NCAZach Hilman
2018-09-04registration: Add RegisteredCacheUnionZach Hilman
Aggregates multiple caches into one interface
2018-09-04main: Only show DRD deprecation warning onceZach Hilman
2018-09-04control_metadata: Use alternate language names if AmericanEnglish isn't ↵Zach Hilman
available
2018-09-04card_image: Add program title ID getterZach Hilman
2018-09-04nsp: Comply with style and performance guidelinesZach Hilman
2018-09-04registration: Add support for installing NSP filesZach Hilman
2018-09-04card_image: Parse XCI secure partition with NSPZach Hilman
Eliminated duplicate code and adds support for Rev1+ carts
2018-09-04file_sys: Add Nintendo Submission Package (NSP)Zach Hilman
2018-09-03file_sys: Replace includes with forward declarations where applicableLioncash
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
2018-09-02vfs_real: Forward declare IOFileLioncash
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.
2018-08-31core/core: Replace includes with forward declarations where applicableLioncash
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.
2018-08-27Merge pull request #1188 from lioncash/unusedbunnei
vfs_real: Remove unused variable in CreateDirectoryRelative()
2018-08-27vfs_real: Remove unused variable in CreateDirectoryRelative()Lioncash
2018-08-27registered_cache: Get rid of variable shadowing in ProcessFiles()Lioncash
Prevents compiler warnings.
2018-08-24file_sys/crypto: Fix missing/unnecessary includesZach Hilman
2018-08-23xci: Ignore NCA files with updates in secureZach Hilman
2018-08-23content_archive: Add update title detectionZach Hilman
This is needed because the title IDs of update NCAs will not use the update title ID. The only sure way to tell is to look for a partition with BKTR crypto.
2018-08-23key_manager: Create keys dir if it dosen't existZach Hilman
On call to WriteKeyToFile, so that the autogenerated file can be written.
2018-08-23file_sys: Cut down on includes and copiesZach Hilman
2018-08-23crypto: Eliminate magic constantsZach Hilman
2018-08-23file_sys: Implement NAX containersZach Hilman
2018-08-23registration: Add GetEntryUnparsed methodsZach Hilman
Returns the file before calling parser on it.
2018-08-23sdmc_factory: Add SDMC RegisteredCache getterZach Hilman
2018-08-23vfs: Add GetOrCreateDirectoryRelative methodZach Hilman