wwylele
d7d6975af0
FileSys: rename SaveDataCheck archive to NCCH archive
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
9 years ago
wwylele
0987783699
FileSys: add SDMCWriteOnlyArchive
9 years ago
wwylele
4dd8a831bd
FileSys: make Archive interfaces return error code
and make the mode parameter a reference since it is a BitField union
9 years ago
wwylele
96b0e9476b
fs: implement DeleteDirectoryRecursively
9 years ago
Yuri Kunde Schlesner
84fbbe2629
Use negative priorities to avoid special-casing the self-include
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
JamePeng
f87bb8ba0a
Fix the errorcode of archive handle
10 years ago
wwylele
ab2eef396a
Service::CFG/FS: add and refactor out utilities for front-end
10 years ago
Subv
0aef634a54
Memory: Handle RasterizerCachedMemory and RasterizerCachedSpecial page types in the memory block manipulation functions.
10 years ago
MerryMage
896e5009ae
FS/Archive: Remove use of Memory::GetPointer
10 years ago
tfarley
22f3a7e94c
HWRasterizer: Texture forwarding
10 years ago
MerryMage
a06dcfeb61
Common: Remove Common::make_unique, use std::make_unique
10 years ago
Subv
f707026ac5
HLE/FS: Change the error code returned when an ExtSaveData archive is not found.
This allows Fire Emblem to boot again.
10 years ago
Subv
3aa42627a3
HLE/FS: Corrected some style concerns.
10 years ago
Subv
d26c6b3212
HLE/FS: Implemented GetFormatInfo
Format information is currently only implemented for the ExtSaveData, SharedExtSaveData and SaveData archives, the information is stored in a file alongside the root folder of the archive.
10 years ago
Subv
9b2d643451
HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist.
10 years ago
Subv
95b34f8081
HLE/FS: Return the proper error codes when opening files.
10 years ago
Subv
802ef6d099
HLE/FS: Fixed the OpenDirectory error code
10 years ago
Subv
96f0e32f83
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
Subv
09b0564c75
HLE/FS: Corrected the error codes for DeleteFile
10 years ago
Subv
381a5c053f
HLE/FS: FS::CreateFile takes an u64 for the file size.
10 years ago
archshift
5dfd2dba70
Implement FS_User::GetFreeBytes
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
e5fcabdd69
Core: Cleanup file_sys includes.
11 years ago
Subv
66c1db7288
ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder.
Organize the ExtSaveData folders as they are stored in the console.
11 years ago
Emmanuel Gil Peyrot
b1503b2020
Remove every trailing whitespace from the project (but externals).
11 years ago
Yuri Kunde Schlesner
e1fbac3ca1
Common: Remove common.h
11 years ago
Yuri Kunde Schlesner
6f89d25f90
FileSys: Clean-up includes, de-inline destructors
11 years ago
Subv
1d61cd4460
Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveData
Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory.
11 years ago
Subv
83a8975cb8
Services: Moved the PTM and APT services to their own folder
This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs.
Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
11 years ago
Subv
9db5c9b6dc
Archives: Properly implemented the SystemSaveData archive.
Ported to the new factory pattern we have for archives.
11 years ago
Subv
8e2b248e05
Build: Fixed some warnings
11 years ago
archshift
ef24e72b26
Asserts: break/crash program, fit to style guide; log.h->assert.h
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time)
As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing)
Also removed some GEKKO cruft.
11 years ago
Subv
1bbf0567b1
Archives: Made the Format function more generic.
11 years ago
Subv
071663e074
Archives: Expose the File and Directory classes to HLE
11 years ago
Yuri Kunde Schlesner
3f1a3952d7
FS: Allow multiple instances of the same archive type to be open at once
11 years ago
Yuri Kunde Schlesner
4468625080
FS: Get rid of completely useless Archive class
11 years ago
Yuri Kunde Schlesner
8441591659
FS: Remove use of GetHandle
11 years ago
Yuri Kunde Schlesner
5e91fc0d1a
Filesys: Move creation of Handles for File/Directory to service handlers
11 years ago
Lioncash
551264f815
archive: Fix initializer list order for the File class.
11 years ago
Yuri Kunde Schlesner
09ae6e1fa3
Remove result.h InvalidHandle
It was only being used in two places, where it was replaced by a local
constant.
11 years ago
Subv
c2e9990149
Services: Stubbed more services.
Implemented FSUser::CreateExtSaveData
11 years ago
Subv
32dbb76e00
Archives: Changed the unimplemented archives comment.
It now refers to me as the PoC
11 years ago
Subv
5244ac0e9c
Archives: Addressed some comments
11 years ago
Subv
90dffe3fc1
Archives: Make SYSTEM_ID and SDCARD_ID strings
11 years ago
Subv
71a063f45c
Archives: Changed the way paths are built for the archives.
Each archive now takes a mount point of either NAND or SDMC, and builds its own directory structure there, trying to simulate an HLE-friendly hardware layout
11 years ago
Subv
3bc9f5509b
Archives: Change the folder layout of some archives.
This is to better represent the hardware layout, they are still aren't quite accurate, but this better and will help a bit when implementing the other archives like NAND-RO and NAND-RW
11 years ago
Subv
aade417b14
Archives: Reduced duplicate code in RomFS and SaveCheck.
Fixed a few warnings and cleaned up the code
11 years ago