Commit Graph

147 Commits (37bec598ea28662462dcaab65d5abd6db8372dbc)

Author SHA1 Message Date
TheKoopaKingdom 37bec598ea Made some changes from review comments:
- Made LoadKernelSystemMode return a pair consisting of a system mode and a result code (Could use review).
- Deleted ErrorOpenGL error code in favor of just having ErrorVideoCore.
- Made dialog messages more clear.
- Compared archive ID in fs_user.cpp to ArchiveIdCode::NCCH as opposed to hex magic.
- Cleaned up some other stuff.
8 years ago
Yuri Kunde Schlesner 92be29adba FileSys: Move all result description to errors.h 8 years ago
wwylele 047a1586fe file_sys: lower log level for setting host path 8 years ago
Mat M 0cb52ee74a Doxygen: Amend minor issues (#2593)
Corrects a few issues with regards to Doxygen documentation, for example:

- Incorrect parameter referencing.
- Missing @param tags.
- Typos in @param tags.

and a few minor other issues.
8 years ago
wwylele 20544977da loader: use self NCCH archive 8 years ago
wwylele a0df747325 file_sys: add Self NCCH archive 8 years ago
Kloen f352a741d3 core: fix savedata_archive.cpp warnings about unhandled enumeration values on OSX 8 years ago
Kloen c4f9cd3559 core: fix archive_sdmc.cpp warnings about unhandled enumeration value on OSX 8 years ago
Kloen f14a53abd0 core: fix archive_extsavedata.cpp warning on OSX 8 years ago
bunnei 5ac5cbeab7 Address clang-format issues. 9 years ago
bunnei 4fc8b8229e core: Remove HLE module, consolidate code & various cleanups. 9 years ago
MerryMage 40b0ea1086 archive_source_sd_savedata: Add static method to get a specific save data path 9 years ago
Lioncash 5e9f1ec096 file_sys: Make a few single-argument constructors explicit
Prevents implicit conversions.
9 years ago
wwylele 589b642790 FileSys: Implement OtherSaveData 9 years ago
wwylele 5af117e00c FileSys: abstract SD save data archive source 9 years ago
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 f775a3781b FileSys: remove unused DiskArchive
All "subclasses" of DiskArchive are splitted out. This class is useless
9 years ago
wwylele 0647f86649 FileSys: w->rw permission lift only happens in SDMC archive 9 years ago
wwylele 0987783699 FileSys: add SDMCWriteOnlyArchive 9 years ago
wwylele 93aa14e345 FileSys: add SDMCArchive
Now DiskArchive only serves for SDMC, then it should be just a "SDMCArchive"
9 years ago
wwylele a879984c06 FileSys: add ExtSaveDataArchive
ExtSaveData is more similar to SaveData, so let it be a subclass of SaveData
9 years ago
wwylele 7166fdc490 FileSys: add SaveDataArchive
The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive.
9 years ago
wwylele 9a0405858a FileSys: remove Open from FileBackend
Same as directory, file shouldn't expose Open either.
9 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
wwylele 75ee2f8c67 FileSys: add PathParser 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
MerryMage 2be17a0c6e FileSys/Path: Replace Memory::GetPointer with Memory::ReadBlock 9 years ago
Mathew Maidment aa6380e5bc Merge pull request #1643 from MerryMage/make_unique
Common: Remove Common::make_unique, use std::make_unique
9 years ago
MerryMage a06dcfeb61 Common: Remove Common::make_unique, use std::make_unique 9 years ago
Lioncash f6ad3e42f0 archive_extsavedata: Fix member initialization order
shared appears in the initializer list before mount_point
9 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.
9 years ago
Subv 3aa42627a3 HLE/FS: Corrected some style concerns. 9 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.
9 years ago
Subv 95b34f8081 HLE/FS: Return the proper error codes when opening files. 9 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.
9 years ago
Subv 09b0564c75 HLE/FS: Corrected the error codes for DeleteFile 9 years ago
Subv b350f192bb HLE/FS: Corrected the error codes for CreateFile 9 years ago
Subv 381a5c053f HLE/FS: FS::CreateFile takes an u64 for the file size. 9 years ago
bunnei cddb9bd2aa Merge pull request #1297 from Subv/saves
DiskDirectory: Initialize the directory member with valid info.
9 years ago
Lioncash 3ed5ecd67a archive_backend: Remove unnecessary const from return types
This doesn't return by reference so const isn't really necessary
9 years ago
Subv 922b31ebbd DiskDirectory: Initialize the directory member with valid info. 10 years ago
archshift 5dfd2dba70 Implement FS_User::GetFreeBytes 10 years ago
Lioncash a97d9613a7 ivfc_archive: Fix a printf specifier 10 years ago
Lioncash d7bfda3e26 disk_archive: Remove unimplemented constructor declarations 10 years ago
Subv ce6a65cec9 Services/FS: Correctly tell the guest app whether a file was correctly opened or not.
Closes #1067
10 years ago