| Age | Commit message (Collapse) | Author |
|
partition_filesystem: Use std::move where applicable
|
|
* Regression and Mode Fixes
* Review Fixes
* string_view correction
* Add operator& for FileSys::Mode
* Return std::string from SanitizePath
* Farming Simulator Fix
* Use != With mode operator&
|
|
Avoids copying a std::string instance and avoids unnecessary atomic
reference count incrementing and decrementing.
|
|
Cleanup
Review fixes
|
|
ReplaceFileWithSubdirectory() takes a VirtualFile and a VirtualDir, but
it was being passed a string as one of its arguments. The only reason
this never caused issues is because this template isn't instantiated
anywhere yet.
This corrects an issue before it occurs.
|
|
Avoids unnecessary construction of std::string instances where
applicable.
|
|
This avoids a truncating cast on size. I doubt we'd ever traverse a
directory this large, however we also shouldn't truncate sizes away.
|
|
partition_filesystem, vfs_real: Minor changes
|
|
file_sys/errors: Remove redundant object constructor calls
|
|
Given we're already constructing the error code, we don't need to call
the constructor inside of it.
|
|
and GetSubdirectories()
We already return by value, so we don't explicitly need to make the
copy.
|
|
|
|
ReplaceFileWithSubdirectory() where applicable
Avoids unnecessary atomic increment and decrement operations.
|
|
This is a little bit more self-documenting on what is being done here.
|
|
We can simply use std::clamp() here, instead of using an equivalent
with std::max() and std::min().
|
|
const reference
Given the data is intended to be directly written, there's no need to
take the std::vector by value and copy the data.
|
|
Provides the same behavior, but with less writing
|
|
functions to be const qualified
These functions don't modify the data being pointed to, so these can be
pointers to const data
|
|
filesys/loader: std::move VirtualFile instances in constructors where applicable
|
|
Avoids potentially unnecessary atomic reference count incrementing and
decrementing, as well as string copying.
|
|
This should be returned here, otherwise pfs_dirs is effectively only
ever added to, but never read.
|
|
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
|
|
partition_filesystem: Ensure all class members of PartitionFilesystem are initialized
|
|
content_archive: Minor changes
|
|
member function
This function doesn't alter class state.
|
|
initialized
Previously is_hfs and pfs_header members wouldn't be initialized in the
constructor, as they were stored in locals instead. This would result in
things like GetName() and PrintDebugInfo() behaving incorrectly.
While we're at it, initialize the members to deterministic values as
well, in case loading ever fails.
|
|
There's no need to take this by value when it's possible to avoid
unnecessary copies entirely like this.
|
|
|
|
Gets rid of unnecessary atomic reference count incrementing and
decrementing.
|
|
We can just use a generic lambda to avoid writing the same thing twice.
|
|
* Virtual Filesystem
* Fix delete bug and documentate
* Review fixes + other stuff
* Fix puyo regression
|
|
|
|
We were trying to delete things in the current directory instead of the actual filesystem directory. This may fix some savedata issues in some games.
|
|
Services/FS: Return the correct error code when trying to mount a nonexistent savedata.
|
|
|
|
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
|
|
* 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
|
|
|
|
|
|
* Start to add NCA support in loader
* More nca stuff
* More changes to nca.cpp
* Now identifies decrypted NCA cont.
* Game list fixes and more structs and stuff
* More updates to Nca class
* Now reads ExeFs (i think)
* ACTUALLY LOADS EXEFS!
* RomFS loads and games execute
* Cleanup and Finalize
* plumbing, cleanup and testing
* fix some things that i didnt think of before
* Preliminary Review Changes
* Review changes for bunnei and subv
|
|
|
|
nonexistent savedata.
|
|
This makes the formatting expectations more obvious (e.g. any zero padding specified
is padding that's entirely dedicated to the value being printed, not any pretty-printing
that also gets tacked on).
|
|
Lessens the amount to read and gets rid of the PRIX64 macro, allowing us to use a single string
for the whole path, making it easier to read.
|
|
|
|
|
|
Disk_Directory
|
|
|
|
|
|
|