Zach Hilman
6eada3c57d
file_sys: Port Atmosphere-NX fs_mitm implementation
7 years ago
Zach Hilman
50a470eab8
bis_factory: Add mod directory VFS getter
7 years ago
Zach Hilman
16188acb50
patch_manager: Add LayeredFS mods support
7 years ago
Zach Hilman
44fdac334c
vfs_concat: Rewrite and fix ConcatenatedVfsFile
7 years ago
Zach Hilman
3e5c3d0f16
vfs_layered: Add LayeredVfsDirectory
Reads multiple dirs through as if a waterfall.
7 years ago
Zach Hilman
b52343a428
vfs_vector: Add VectorVfsFile
Maps a vector into the VFS interface.
7 years ago
Zach Hilman
c65d4d119f
vfs_static: Add StaticVfsFile
Always returns the template argument byte for all reads. Doesn't support writes.
7 years ago
Zach Hilman
f68e324672
vfs: Add and rewite VfsRawCopy functions
7 years ago
Zach Hilman
d6cbb3a3e0
vfs: Add GetEntries method
Maps name string to directory or file.
7 years ago
Lioncash
05ef9dfc10
file-sys: Default heavy-weight class destructors in the cpp file
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.
7 years ago
Lioncash
3146502a12
control_metadata: Remove unnecessary else within GetLanguageEntry()
There's no need to indent the code here, given the if case contains a
return statement at the end of it.
7 years ago
Lioncash
05d49962b6
control_metadata: Move language name array definition to the cpp file
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.
7 years ago
Lioncash
2e5f0e5024
xts_archive: Remove unused variables from CalculateHMAC256()
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.
7 years ago
Lioncash
2752183883
xts_archive: Make AsNCA() return a std::unique_ptr instead of a std::shared_ptr
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.
7 years ago
Lioncash
f272261c21
xts_archive: Ensure NAX's type member is always initialized
Ensures that the member always has a deterministic value.
7 years ago
Lioncash
92a98a8b19
xts_archive: Amend initializer order of NAX's constructor
Orders the initializer list in the same order the members would be
initialized. Avoids compiler warnings.
7 years ago
Zach Hilman
dfaea55be5
savedata_factory: Add TemporaryStorage SaveDataType
Seems to be used by NSO NES Emulator
7 years ago
fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
Lioncash
54724fe918
file_sys/nca_patch: Amend constructor initializer list order
Orders the elements in the initializer list in the order they're
specified in the class. This prevents compiler warnings about
initialization order.
7 years ago
Lioncash
b155b3ef81
file_sys/nca_patch: Remove unnecessary includes
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.
7 years ago
Lioncash
a859a35ec8
file_sys/patch_manager: Add missing includes
These includes were previously being satisfied indirectly.
7 years ago
Lioncash
6bd6beee20
file_sys/submission_package: Correct constructor initialization list order
Orders the elements in the sequence to match the order in which they'll
actually be initialized in.
7 years ago
Lioncash
c0b7ed8b58
file_sys/submission_package: Replace includes with forward declarations where applicable
7 years ago
Zach Hilman
c913136eb2
bktr: Fix bucket overlap error
7 years ago
Zach Hilman
23a16c1720
patch_manager: Centralize Control-type NCA parsing
7 years ago
Zach Hilman
92e26df00f
nsp: Fix error masking issue with XCI files
Now display correct error instead of catch-all MissingProgramNCA
7 years ago
Zach Hilman
c91b60a421
game_list: Fix version display on non-NAND titles
7 years ago
Zach Hilman
cbd517d8cc
bktr: Add logging on successful patch
7 years ago
Zach Hilman
a6e75cd45b
bktr: Implement IVFC offset shifting
Fixes base game read errors
7 years ago
Zach Hilman
9664ce255d
bktr: Fix missing includes and optimize style
7 years ago
Zach Hilman
97bf83bc56
patch_manager: Add usages of patches to ExeFS
7 years ago
Zach Hilman
8e900a301a
file_sys: Add class to manage game patches
Right now only includes Updates, but should eventually contain all of the other patches we need.
7 years ago
Zach Hilman
54e7ddb93a
file_sys: Add BKTR patching mechanism
7 years ago
Zach Hilman
1efe5a76b1
content_archive: Add BKTR header parsing to NCA
7 years ago
Zach Hilman
9951f6d054
registration: Add RegisteredCacheUnion
Aggregates multiple caches into one interface
7 years ago
Zach Hilman
87be4bc283
main: Only show DRD deprecation warning once
7 years ago
Zach Hilman
e973cceadd
control_metadata: Use alternate language names if AmericanEnglish isn't available
7 years ago
Zach Hilman
23d2c50479
card_image: Add program title ID getter
7 years ago
Zach Hilman
e4e55d064e
nsp: Comply with style and performance guidelines
7 years ago
Zach Hilman
f7eaea424d
registration: Add support for installing NSP files
7 years ago
Zach Hilman
5c8aff984e
card_image: Parse XCI secure partition with NSP
Eliminated duplicate code and adds support for Rev1+ carts
7 years ago
Zach Hilman
93703431e2
file_sys: Add Nintendo Submission Package (NSP)
7 years ago
Lioncash
a813c10e1c
file_sys: Replace includes with forward declarations where applicable
Cuts down on include dependencies, resulting in less files that need to
be rebuilt when certain things are changed.
7 years ago
Lioncash
a405373144
vfs_real: Forward declare IOFile
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.
7 years ago
Lioncash
4a587b81b2
core/core: Replace includes with forward declarations where applicable
The follow-up to e2457418da , 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.
7 years ago
Lioncash
c6024379a4
vfs_real: Remove unused variable in CreateDirectoryRelative()
7 years ago
Lioncash
d3934d7da7
registered_cache: Get rid of variable shadowing in ProcessFiles()
Prevents compiler warnings.
7 years ago
Zach Hilman
6314a799aa
file_sys/crypto: Fix missing/unnecessary includes
7 years ago
Zach Hilman
d1a6dd61d1
xci: Ignore NCA files with updates in secure
7 years ago
Zach Hilman
4f18c17df7
content_archive: Add update title detection
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.
7 years ago