wwylele
1e33d07b86
FileSys: remove Open from FileBackend
Same as directory, file shouldn't expose Open either.
9 years ago
Emmanuel Gil Peyrot
1138ec0d49
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
1e4a5da9f4
Manually tweak source formatting and then re-run clang-format
9 years ago
Emmanuel Gil Peyrot
628ed4376a
Sources: Run clang-format on everything.
9 years ago
Subv
6983167205
HLE/FS: Return the proper error codes when opening files.
10 years ago
Subv
bbbdb660af
HLE/FS: Return the proper error codes on file Read/Write operations.
These operations are limited by the open flags specified while opening the file.
10 years ago
Yuri Kunde Schlesner
a1f08788d9
Archive: Correct a few incorrect types in function signatures
Buffer lengths should be size_t, and file offsets should be u64.
11 years ago
Emmanuel Gil Peyrot
2d044a67c9
Common: Cleanup memory and misc includes.
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Yuri Kunde Schlesner
c0eaa662d4
Clean-up includes
11 years ago
purpasmart96
ebfd831ccb
License change
11 years ago
Subv
ea9ce0fba7
Filesystem/Archives: Implemented the SaveData archive
The savedata for each game is stored in /savedata/<ProgramID> for NCCH files. ELF files and 3DSX files use the folder 0 because they have no ID information
Got rid of the code duplication in File and Directory
Files that deal with the host machine's file system now live in DiskFile, similarly for directories and DiskDirectory and archives with DiskArchive.
FS_U: Use the correct error code when a file wasn't found
11 years ago
Yuri Kunde Schlesner
0931a42af0
Service.FS: Rename FileSys::File to FileBackend
11 years ago
Emmanuel Gil Peyrot
0be5c03176
FileSys: split the constructor into an Open method, in order to notify the opener something went wrong.
Kernel: Return an invalid handle to OpenFile when it failed to open.
11 years ago
Emmanuel Gil Peyrot
23c2fbfc7a
FileSys/Kernel: Implement SetSize service call for File objects.
11 years ago
Emmanuel Gil Peyrot
d34673990b
FileSys: Add forgotten docstrings.
11 years ago
Emmanuel Gil Peyrot
9251f7e2f8
Core: Add a new File class, obtainable from an Archive, and a stub implementation.
11 years ago