summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_offset.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* file_sys: Resolve cases of variable shadowingLioncash2021-05-021-2/+2
| | | | Brings us closer to enabling -Wshadow as an error in the core code.
* vfs: Use existing type aliases consistentlyLioncash2020-12-101-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.
* General: Make use of std::nullopt where applicableLioncash2020-09-221-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.
* global: Use std::optional instead of boost::optional (#1578)Frederic L2018-10-301-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
* file-sys: Default heavy-weight class destructors in the cpp fileLioncash2018-09-201-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.
* Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi2018-09-151-12/+12
|
* RomFS ExtractionZach Hilman2018-07-281-3/+4
|
* file_util, vfs: Use std::string_view where applicableLioncash2018-07-221-1/+1
| | | | | Avoids unnecessary construction of std::string instances where applicable.
* vfs_offset: Simplify TrimToFit()Lioncash2018-07-211-1/+2
| | | | | We can simply use std::clamp() here, instead of using an equivalent with std::max() and std::min().
* vfs: Make WriteBytes() overload taking a std::vector pass the std::vector by const referenceLioncash2018-07-211-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.
* vfs_offset: std::move file and name parameters of OffsetVfsFileLioncash2018-07-201-2/+4
| | | | | Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying.
* Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman2018-07-191-0/+92
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* Revert "Virtual Filesystem (#597)"bunnei2018-07-081-92/+0
| | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* Virtual Filesystem (#597)Zach Hilman2018-07-061-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