Lioncash
7e2467e695
file_sys/directory: Amend path buffer size for directory entries
The path buffer is actually 0x301 (769) characters in length, with the
extra character being intended for the null-terminator.
7 years ago
fearlessTobi
63c2e32e20
Port #4182 from Citra: "Prefix all size_t with std::"
7 years ago
Lioncash
7353cfc781
fsp_srv: Use std::string_view's copy() function instead of strncpy()
Given elements inserted into a vector are zeroed out, we can just copy
MAX_LEN - 1 elements and the data will already be properly null
terminated.
8 years ago
Zach Hilman
29aff8d5ab
Virtual Filesystem 2: Electric Boogaloo ( #676 )
* Virtual Filesystem
* Fix delete bug and documentate
* Review fixes + other stuff
* Fix puyo regression
8 years ago
Subv
a9ba2c2000
FS: Updated the Directory Entry structure to match the Switch.
8 years ago
bunnei
00851a5ef4
file_sys: Cleanup to better match Switch file system constructs.
file_sys: Add factory class for RomFS file system.
8 years ago
wwylele
0e754875d1
FileSys: remove Open from DirectoryBackend
Open should not be an interface exposed by Directory because it is the Archive thats implement the methed to open the directory. The service API of 3DS also implies this - Open is not a function of directory service, but is of FS main service
9 years ago
Emmanuel Gil Peyrot
ebdae19fd2
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
9 years ago
Yuri Kunde Schlesner
396a8d91a4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
dc8479928c
Sources: Run clang-format on everything.
9 years ago
Yuri Kunde Schlesner
c0eaa662d4
Clean-up includes
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Yuri Kunde Schlesner
d51afab0bc
Service.FS: Rename FileSys::Directory to DirectoryBackend
11 years ago
archshift
20d2ed0950
Make OpenDirectory fail if the directory doesn't exist
This is in line with what the hardware itself does.
It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails.
Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code .
11 years ago
Emmanuel Gil Peyrot
fbd72fd6bf
Common: Add a helper function to generate a 8.3 filename from a long one.
Core: Fix the SDMC Directory implementation to make blargSnes work.
11 years ago
Emmanuel Gil Peyrot
19c2a96ab0
FileSys: Add static asserts for the Directory struct, and fix its fields position.
11 years ago
Emmanuel Gil Peyrot
33b0d1081e
Core: Add a Directory object, with both a stub and a passthrough implementations.
11 years ago