aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys
AgeCommit message (Collapse)Author
2020-10-20Revert "core: Fix clang build"bunnei
2020-10-17core: Fix clang buildLioncash
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-10-13core/CMakeLists: Make some warnings errorsLioncash
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-10-12Merge pull request #3929 from FearlessTobi/ticket-keysbunnei
file_sys/nsp: Make SetTicketKeys actually do something
2020-09-24submission_package: Fix updates integrated into cartridge images.Morph
2020-09-22General: Make use of std::nullopt where applicableLioncash
Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
2020-09-22ips_layer: Eliminate a redundant copy in Parse()Lioncash
Prevents unnecessary copying of the line being parsed.
2020-09-21Merge pull request #4675 from Morph1984/fix-boot-multicontentbunnei
submission_package: Account for multi-content NSPs
2020-09-17submission_package: Account for multi-content NSPsMorph
Previously we assumed a submission package can only contain one Program NCA with a single TitleID. However, Super Mario 3D All-Stars contains four Program NCAs, each with their unique TitleIDs. This accounts for the existence of multi-content games such as this one. - Fixes booting Super Mario 3D All-Stars from the games list.
2020-09-17control_metadata: Resolve typo in Portuguese language nameLioncash
This isn't used anywhere, so this is a trivial fix.
2020-09-16file_sys/romfs_factory: Eliminate usage of the global system accessorLioncash
2020-09-16file_sys/bis_factory: Eliminate usage of the global system accessorLioncash
2020-09-16Merge pull request #4658 from lioncash/copy3Rodrigo Locatti
nca_patch: Reduce stack usage size within SearchBucketEntry()
2020-09-15nca_patch: Significantly reduce the stack usage size within SearchBucketEntry()Lioncash
Previously this function was using ~16KB of stack (16528 bytes), which was caused by the function arguments being taken by value rather than by reference. We can make this significantly lighter on the stack by taking them by reference.
2020-09-15nca_patch: Make SearchBucketEntry() internally linkedLioncash
This is only used internally and doesn't depend on any class state, so we can make it fully internal.
2020-09-15cheat_engine: Remove unnecessary system argument to CheatParser's Parse functionLioncash
This isn't used within the function at all in any implementations, so we can remove it entirely.
2020-09-14patch_manager: Resolve implicit truncations in FormatTitleVersion()Lioncash
We make it explicit that we're truncating arithmetic here to resolve compiler warnings (even if the sizes weren't u32/u64 arithmetic generally promotes to int :<)
2020-09-14patch_manager: Make use of type aliasesLioncash
We can use these to avoid typing the same type redundantly. This way, if these ever change, only a single location needs to be modified.
2020-09-14patch_manager: Make a few functions internally linkedLioncash
These functions are only used within this translation unit, so we can make them internally linked.
2020-09-03file_sys/patch_manager: Add missing includeReinUsesLisp
Fixes build issues
2020-09-02Merge pull request #4564 from lioncash/file-includebunnei
file_sys: Replace inclusions with forward declarations where applicable
2020-08-25Merge pull request #4563 from lioncash/rcachebunnei
registered_cache: Make use of designated initializers
2020-08-23file_sys: Replace inclusions with forward declarations where applicableLioncash
Same behavior, minus unnecessary inclusions where not necessary.
2020-08-23registered_cache: Make use of ends_with for string suffix checkingLioncash
Simplifies code.
2020-08-23registered_cache: Make use of designated initializersLioncash
Removes the need for comments to indicate the fields being assigned.
2020-08-18vfs_real: Resolve sign conversion warningsLioncash
2020-08-18vfs_real: Avoid redundant map lookupsLioncash
Avoids some trivially avoidable map lookups by keeping the result of find operations around and querying them.
2020-08-16common/fileutil: Convert namespace to Common::FSLioncash
Migrates a remaining common file over to the Common namespace, making it consistent with the rest of common files. This also allows for high-traffic FS related code to alias the filesystem function namespace as namespace FS = Common::FS; for more concise typing.
2020-08-13General: Tidy up clang-format warnings part 2Lioncash
2020-08-09Merge pull request #4488 from lioncash/filebunnei
vfs_vector: Make creation of array vfs files less verbose
2020-08-05Merge pull request #4484 from lioncash/aesutilbunnei
aes_util: Allow SetIV() to be non-allocating
2020-08-05vfs_vector: Make creation of array vfs files less verboseLioncash
We can add a helper function to make creation of these files nicer. While we're at it, we can eliminate an unnecessary std::array copy in the constructor. This makes the overhead on some of these functions way less intensive, given some arrays were quite large. e.g. The timezone location names are 9633 bytes in size.
2020-08-04Merge pull request #4476 from lioncash/tzbunnei
time_zone_binary: Make use of designated initializers
2020-08-04Merge pull request #4470 from lioncash/qualifierDavid
patch_manager: Resolve -Wignored-qualifier warnings
2020-08-03Merge pull request #4456 from Morph1984/stub-really-long-fs-funcbunnei
fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttribute
2020-08-03aes_util: Allow SetIV to be non-allocatingLioncash
In a few places, the data to be set as the IV is already within an array. We shouldn't require this data to be heap-allocated if it doesn't need to be. This allows certain callers to reduce heap churn.
2020-08-03Merge pull request #4468 from lioncash/regcachebunnei
registered_cache: Resolve -Wmaybe_uninitialized warnings
2020-08-03Merge pull request #4467 from lioncash/modebunnei
file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with Mode
2020-08-03time_zone_binary: Make use of designated initializersLioncash
2020-08-03file_sys/mode: Make use of DECLARE_ENUM_FLAG_OPERATORS with ModeLioncash
Same behavior, minus a hand-rolled operator.
2020-08-03patch_manager: Resolve -Wignored-qualifier warningsLioncash
Top level const will always be ignored in this case, so it can be removed.
2020-08-03registered_cache: Resolve -Wmaybe_uninitialized warningsLioncash
While we're at it, we can avoid a redundant map lookup.
2020-07-30fs: Rename SaveDataDescriptor to SaveDataAttributeMorph
2020-07-29xts_archive: Check if the file is nullptr prior to parsingMorph
Fixes an access violation where the file no longer exists at the specified path while being parsed.
2020-07-29registered_cache: Add support for removing folder ncasMorph
2020-07-18file_sys/nsp: Make SetTicketKeys actually do somethingFearlessTobi
Previously, the method wasn't modifying any class state and therefore not having any effects when called. Since this has been the case for a very long time now, I'm not sure if we couldn't just remove this method altogether.
2020-07-17Merge pull request #4309 from Morph1984/fix-romfs-bugbunnei
fs: Fix RomFS building when zero byte files are present
2020-07-16Check for empty section0 and CNMT prior to installMorph
2020-07-15clang formatMorph
2020-07-15Use proper install result when overwriting filesMorph