summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_offset.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-02file_sys: Resolve cases of variable shadowingLioncash1-2/+2
Brings us closer to enabling -Wshadow as an error in the core code.
2020-12-10vfs: Use existing type aliases consistentlyLioncash1-2/+2
Makes use of the VirtualDir and VirtualFile aliases across the board instead of having a few isolated places that don't use it.
2020-09-22General: Make use of std::nullopt where applicableLioncash1-3/+4
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.
2018-10-30global: Use std::optional instead of boost::optional (#1578)Frederic L1-2/+2
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
2018-09-20file-sys: Default heavy-weight class destructors in the cpp fileLioncash1-0/+2
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-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi1-12/+12
2018-07-28RomFS ExtractionZach Hilman1-3/+4
2018-07-22file_util, vfs: Use std::string_view where applicableLioncash1-1/+1
Avoids unnecessary construction of std::string instances where applicable.
2018-07-21vfs_offset: Simplify TrimToFit()Lioncash1-1/+2
We can simply use std::clamp() here, instead of using an equivalent with std::max() and std::min().
2018-07-21vfs: Make WriteBytes() overload taking a std::vector pass the std::vector by const referenceLioncash1-1/+1
Given the data is intended to be directly written, there's no need to take the std::vector by value and copy the data.
2018-07-20vfs_offset: std::move file and name parameters of OffsetVfsFileLioncash1-2/+4
Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying.
2018-07-19Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman1-0/+92
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
2018-07-08Revert "Virtual Filesystem (#597)"bunnei1-92/+0
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
2018-07-06Virtual Filesystem (#597)Zach Hilman1-0/+92
* Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename