Lioncash
e523ab8b03
vfs: Use variable template variants of std::is_trivially_copyable
Provides the same behavior, but with less writing
8 years ago
Lioncash
556aaf9627
vfs: Amend constness on pointers in WriteBytes() and WriteArrays() member functions to be const qualified
These functions don't modify the data being pointed to, so these can be
pointers to const data
8 years ago
Lioncash
02e5e6fba3
vfs_offset: std::move file and name parameters of OffsetVfsFile
Avoids potentially unnecessary atomic reference count incrementing and
decrementing, as well as string copying.
8 years ago
Lioncash
3fbde66789
partition_filesystem: Return pfs_dirs member variable within GetSubdirectories()
This should be returned here, otherwise pfs_dirs is effectively only
ever added to, but never read.
8 years ago
Lioncash
f92bb43138
savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member function
This function doesn't alter class state.
8 years ago
Lioncash
a9b596c444
partition_filesystem: Ensure all class members of PartitionFilesystem are 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.
8 years ago
Lioncash
9eb43dc910
content_archive: Make IsDirectoryExeFS() take a shared_ptr as a const reference
There's no need to take this by value when it's possible to avoid
unnecessary copies entirely like this.
8 years ago
Lioncash
701bdfd753
content_archive: Add missing standard includes
8 years ago
Lioncash
bff53f234d
content_archive: std::move VirtualFile in NCA's constructor
Gets rid of unnecessary atomic reference count incrementing and
decrementing.
8 years ago
Lioncash
47858aed98
vfs: Deduplicate accumulation code in VfsDirectory's GetSize()
We can just use a generic lambda to avoid writing the same thing twice.
8 years ago
Zach Hilman
82150bd5c1
Virtual Filesystem 2: Electric Boogaloo ( #676 )
* Virtual Filesystem
* Fix delete bug and documentate
* Review fixes + other stuff
* Fix puyo regression
8 years ago
Zach Hilman
753d85fb0c
General Filesystem and Save Data Fixes ( #670 )
8 years ago
Subv
d4a639a08e
FileSys: Append the requested path to the filesystem base path in DeleteFile.
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.
8 years ago
bunnei
99a359777c
savedata_factory: Always create a save directory for games.
8 years ago
bunnei
0c22a8d514
Revert "Virtual Filesystem ( #597 )"
This reverts commit 12e9522b32 .
8 years ago
Zach Hilman
12e9522b32
Virtual Filesystem ( #597 )
* 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
8 years ago
James Rowe
d74d2a77cb
Update clang format
8 years ago
James Rowe
e159c550d8
Rename logging macro back to LOG_*
8 years ago
Zach Hilman
a47f36da7b
Add support for decrypted NCA files ( #567 )
* 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
8 years ago
Subv
cb4ff57322
Build: Fixed some MSVC warnings in various parts of the code.
8 years ago
Subv
62a67fbd0a
Services/FS: Return the correct error code when trying to mount a nonexistent savedata.
8 years ago
Lioncash
1b310cbb3a
general: Make formatting of logged hex values more straightforward
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).
8 years ago
Lioncash
1cd301f2c0
file-sys: convert a StringFromFormat call into fmt::format in GetFullPath()
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.
8 years ago
Lioncash
a1dc050bbf
file-sys: Move logging macros over to the new fmt-capable ones
8 years ago
mailwl
8fffc0962c
Service/FS: implement IFileSystem::RenameFile
8 years ago
Lioncash
5b8891df28
disk_filesystem: Remove unused total_entries_in_directory member from Disk_Directory
8 years ago
Lioncash
eb2bb5500e
disk_filesystem: Remove redundant initializer in Disk_Directory's constructor
8 years ago
Lioncash
19fe9a92ec
disk_filesystem: Make constructors explicit where applicable
8 years ago
shinyquagsire23
5634f49b60
file_sys: Use NGLOG
8 years ago
shinyquagsire23
13ab489cb7
file_sys: tweaks
8 years ago
shinyquagsire23
bba0a351e7
file_sys: Add HFS/PFS helper component
8 years ago
bunnei
dc852fda3b
fsp_srv: Implement DeleteFile.
- Used by Binding of Isaac.
8 years ago
bunnei
db8fc2ea57
fsp_srv: Implement GetSize and SetSize.
8 years ago
Subv
6610bee69e
FS: Move the file open mode calculation to a separate function.
8 years ago
Subv
43295efd0e
FS: Implemented IFileSystem::CreateDirectory.
8 years ago
Subv
bf1c4bf16c
FS: Implement DiskFileSystem's OpenDirectory interface.
8 years ago
Subv
7de15c22f3
FS: Implement DiskFileSystem::GetEntryType for existing files/directories.
8 years ago
Subv
e4b4b765b6
FS: Updated the Directory Entry structure to match the Switch.
8 years ago
Subv
8144364cc2
FS: Support the file Append open mode.
8 years ago
Subv
a079723254
FS: Added an SDMC archive factory and registered it to the SDMC archive on startup.
8 years ago
bunnei
f16763ed52
core: Move process creation out of global state.
8 years ago
Subv
cb738dedb2
FS: Use the correct error code when trying to open files that don't exist.
8 years ago
Subv
9702f6c2ed
FS: Make EnsureSaveData create the savedata folder when called for the first time.
8 years ago
Subv
b874d4f2b0
SaveData: Use the current titleid when opening the savedata archive.
8 years ago
Subv
dfdc72efa7
Filesystem: Added a SaveData Factory and associated Disk_FileSystem.
8 years ago
shinyquagsire23
b48d598627
file_sys: Style tweaks
Asdf
8 years ago
shinyquagsire23
e3c753a14c
file_sys: Add support for parsing NPDM files
8 years ago
bunnei
a2c082be79
file_sys: Clang format fixes.
8 years ago
bunnei
0446482361
file_sys: Cleanup to better match Switch file system constructs.
file_sys: Add factory class for RomFS file system.
8 years ago
bunnei
f3cfe5caac
file_sys: Remove disk_archive, savedata_archive, and title_metadata.
8 years ago