wwylele
1e4a1598fd
FileSys: Implement OtherSaveData
9 years ago
wwylele
37e9404489
FileSys: abstract SD save data archive source
9 years ago
wwylele
01964d37fb
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
a14bab3b8b
FileSys: add SDMCWriteOnlyArchive
9 years ago
wwylele
657bb716f7
FileSys: make Archive interfaces return error code
and make the mode parameter a reference since it is a BitField union
9 years ago
wwylele
b2fa64ec75
fs: implement DeleteDirectoryRecursively
9 years ago
Yuri Kunde Schlesner
fa5d9d8266
Use negative priorities to avoid special-casing the self-include
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
JamePeng
c7d5fee7fb
Fix the errorcode of archive handle
10 years ago
wwylele
5489701b38
Service::CFG/FS: add and refactor out utilities for front-end
10 years ago
Subv
b502c2e4d0
Memory: Handle RasterizerCachedMemory and RasterizerCachedSpecial page types in the memory block manipulation functions.
10 years ago
MerryMage
dfe7263cd4
FS/Archive: Remove use of Memory::GetPointer
10 years ago
tfarley
459035a108
HWRasterizer: Texture forwarding
10 years ago
MerryMage
9f9c987924
Common: Remove Common::make_unique, use std::make_unique
10 years ago
Subv
b94133bd71
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
438f0cb335
HLE/FS: Corrected some style concerns.
10 years ago
Subv
9773d90363
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
90d5e8b597
HLE/FS: Don't return an error when deleting the ExtSaveData if it does not exist.
10 years ago
Subv
6983167205
HLE/FS: Return the proper error codes when opening files.
10 years ago
Subv
a871f0b7d0
HLE/FS: Fixed the OpenDirectory error code
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
Subv
e248331abc
HLE/FS: Corrected the error codes for DeleteFile
10 years ago
Subv
3c9508c468
HLE/FS: FS::CreateFile takes an u64 for the file size.
10 years ago
archshift
5da25ae7d0
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