aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys
AgeCommit message (Collapse)Author
2018-07-20Merge pull request #737 from lioncash/movebunnei
filesys/loader: std::move VirtualFile instances in constructors where applicable
2018-07-20vfs_offset: std::move file and name parameters of OffsetVfsFileLioncash
Avoids potentially unnecessary atomic reference count incrementing and decrementing, as well as string copying.
2018-07-19partition_filesystem: Return pfs_dirs member variable within GetSubdirectories()Lioncash
This should be returned here, otherwise pfs_dirs is effectively only ever added to, but never read.
2018-07-19Merge pull request #703 from lioncash/constbunnei
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
2018-07-19Merge pull request #702 from lioncash/initializebunnei
partition_filesystem: Ensure all class members of PartitionFilesystem are initialized
2018-07-19Merge pull request #701 from lioncash/movingbunnei
content_archive: Minor changes
2018-07-18savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const ↵Lioncash
member function This function doesn't alter class state.
2018-07-18partition_filesystem: Ensure all class members of PartitionFilesystem are ↵Lioncash
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.
2018-07-18content_archive: Make IsDirectoryExeFS() take a shared_ptr as a const referenceLioncash
There's no need to take this by value when it's possible to avoid unnecessary copies entirely like this.
2018-07-18content_archive: Add missing standard includesLioncash
2018-07-18content_archive: std::move VirtualFile in NCA's constructorLioncash
Gets rid of unnecessary atomic reference count incrementing and decrementing.
2018-07-18vfs: Deduplicate accumulation code in VfsDirectory's GetSize()Lioncash
We can just use a generic lambda to avoid writing the same thing twice.
2018-07-18Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
2018-07-17General Filesystem and Save Data Fixes (#670)Zach Hilman
2018-07-14FileSys: Append the requested path to the filesystem base path in DeleteFile.Subv
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.
2018-07-11Merge pull request #559 from Subv/mount_savedatabunnei
Services/FS: Return the correct error code when trying to mount a nonexistent savedata.
2018-07-08savedata_factory: Always create a save directory for games.bunnei
2018-07-07Revert "Virtual Filesystem (#597)"bunnei
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
2018-07-06Virtual Filesystem (#597)Zach Hilman
* 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
2018-07-02Update clang formatJames Rowe
2018-07-02Rename logging macro back to LOG_*James Rowe
2018-06-21Add support for decrypted NCA files (#567)Zach Hilman
* 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
2018-06-20Build: Fixed some MSVC warnings in various parts of the code.Subv
2018-06-18Services/FS: Return the correct error code when trying to mount a ↵Subv
nonexistent savedata.
2018-05-02general: Make formatting of logged hex values more straightforwardLioncash
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).
2018-04-25file-sys: convert a StringFromFormat call into fmt::format in GetFullPath()Lioncash
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.
2018-04-25file-sys: Move logging macros over to the new fmt-capable onesLioncash
2018-04-24Service/FS: implement IFileSystem::RenameFilemailwl
2018-04-19disk_filesystem: Remove unused total_entries_in_directory member from ↵Lioncash
Disk_Directory
2018-04-19disk_filesystem: Remove redundant initializer in Disk_Directory's constructorLioncash
2018-04-19disk_filesystem: Make constructors explicit where applicableLioncash
2018-04-17file_sys: Use NGLOGshinyquagsire23
2018-04-16file_sys: tweaksshinyquagsire23
2018-04-16file_sys: Add HFS/PFS helper componentshinyquagsire23
2018-04-15fsp_srv: Implement DeleteFile.bunnei
- Used by Binding of Isaac.
2018-03-31fsp_srv: Implement GetSize and SetSize.bunnei
2018-03-23FS: Move the file open mode calculation to a separate function.Subv
2018-03-21FS: Implemented IFileSystem::CreateDirectory.Subv
2018-03-19FS: Implement DiskFileSystem's OpenDirectory interface.Subv
2018-03-19FS: Implement DiskFileSystem::GetEntryType for existing files/directories.Subv
2018-03-19FS: Updated the Directory Entry structure to match the Switch.Subv
2018-03-19FS: Support the file Append open mode.Subv
2018-03-19FS: Added an SDMC archive factory and registered it to the SDMC archive on ↵Subv
startup.
2018-03-14core: Move process creation out of global state.bunnei
2018-03-04FS: Use the correct error code when trying to open files that don't exist.Subv
2018-03-04FS: Make EnsureSaveData create the savedata folder when called for the first ↵Subv
time.
2018-03-01SaveData: Use the current titleid when opening the savedata archive.Subv
2018-03-01Filesystem: Added a SaveData Factory and associated Disk_FileSystem.Subv
2018-02-25file_sys: Style tweaksshinyquagsire23
Asdf
2018-02-25file_sys: Add support for parsing NPDM filesshinyquagsire23