aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys
AgeCommit message (Collapse)Author
2017-10-01file_sys/archive_ncch: use NCCHContainer instead of loading .romfs filesshinyquagsire23
2017-09-30nso: Refactor and allocate .bss section.bunnei
2017-09-25HLE/Archives: Allow multiple loaded applications to access their SelfNCCH ↵Subv
archive independently. The loaders now register each loaded ROM with the SelfNCCH factory, which keeps the data around for the duration of the emulation session. When opening the SelfNCCH archive, the factory queries the current program's programid and uses that as a key to the map that contains the NCCHData structure (RomFS, Icon, Banner, etc). 3dsx files do not have a programid and will use a default of 0 for this value, thus, only 1 3dsx file with RomFS is loadable at the same time.
2017-09-25Loader/NCCH: Add support for loading application updates (#2927)Max Thomas
* loader/ncch: split NCCH parsing into its own file * loader/ncch: add support for loading update NCCHs from the SD card * loader/ncch: fix formatting * file_sys/ncch_container: Return a value for OpenFile * loader/ncch: cleanup, always instantiate overlay_ncch to base_ncch * file_sys/ncch_container: better encryption checks, allow non-app NCCHs to load properly and for the existence of NCCH structures to be checked * file_sys/ncch_container: pass filepath as a const reference
2017-08-21Warnings: Add UNREACHABLE macros to switches that contemplate all possible ↵Subv
values.
2017-07-31Handle invalid filenames when renaming files/directoriesJames
2017-06-02Addressed Bunnei's review comments, and made some other tweaks:TheKoopaKingdom
- Deleted GetStatus() because it wasn't used anywhere outside of Core::System. - Fixed design flaw where the message bar status could be set despite the game being stopped.
2017-06-02Switched to the ERROR_NOT_FOUND constant from errors.h.TheKoopaKingdom
2017-06-02Moved whitelist checks from FS_User to the Archive_NCCH handler.TheKoopaKingdom
2017-06-02Made some changes from review comments:TheKoopaKingdom
- 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.
2017-05-24FileSys: Move all result description to errors.hYuri Kunde Schlesner
2017-03-08file_sys: lower log level for setting host pathwwylele
2017-02-26Doxygen: Amend minor issues (#2593)Mat M
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.
2017-02-13loader: use self NCCH archivewwylele
2017-02-13file_sys: add Self NCCH archivewwylele
2017-01-29core: fix savedata_archive.cpp warnings about unhandled enumeration values ↵Kloen
on OSX
2017-01-29core: fix archive_sdmc.cpp warnings about unhandled enumeration value on OSXKloen
2017-01-29core: fix archive_extsavedata.cpp warning on OSXKloen
2016-12-21Address clang-format issues.bunnei
2016-12-21core: Remove HLE module, consolidate code & various cleanups.bunnei
2016-12-15archive_source_sd_savedata: Add static method to get a specific save data pathMerryMage
2016-12-07file_sys: Make a few single-argument constructors explicitLioncash
Prevents implicit conversions.
2016-11-29FileSys: Implement OtherSaveDatawwylele
2016-11-29FileSys: abstract SD save data archive sourcewwylele
2016-11-19FileSys: rename SaveDataCheck archive to NCCH archivewwylele
According to the observation from game and 3dbrew "Used for accessing general NCCH data"
2016-11-19FileSys: remove unused DiskArchivewwylele
All "subclasses" of DiskArchive are splitted out. This class is useless
2016-11-19FileSys: w->rw permission lift only happens in SDMC archivewwylele
2016-11-19FileSys: add SDMCWriteOnlyArchivewwylele
2016-11-19FileSys: add SDMCArchivewwylele
Now DiskArchive only serves for SDMC, then it should be just a "SDMCArchive"
2016-11-19FileSys: add ExtSaveDataArchivewwylele
ExtSaveData is more similar to SaveData, so let it be a subclass of SaveData
2016-11-19FileSys: add SaveDataArchivewwylele
The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive.
2016-11-19FileSys: remove Open from FileBackendwwylele
Same as directory, file shouldn't expose Open either.
2016-11-19FileSys: remove Open from DirectoryBackendwwylele
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
2016-11-19FileSys: add PathParserwwylele
2016-11-01FileSys: make Archive interfaces return error codewwylele
and make the mode parameter a reference since it is a BitField union
2016-10-02fs: implement DeleteDirectoryRecursivelywwylele
2016-09-21Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot
2016-05-21FileSys/Path: Replace Memory::GetPointer with Memory::ReadBlockMerryMage
2016-04-05Merge pull request #1643 from MerryMage/make_uniqueMathew Maidment
Common: Remove Common::make_unique, use std::make_unique
2016-04-05Common: Remove Common::make_unique, use std::make_uniqueMerryMage
2016-03-21archive_extsavedata: Fix member initialization orderLioncash
shared appears in the initializer list before mount_point
2016-03-20HLE/FS: Change the error code returned when an ExtSaveData archive is not found.Subv
This allows Fire Emblem to boot again.
2016-03-20HLE/FS: Corrected some style concerns.Subv
2016-03-20HLE/FS: Implemented GetFormatInfoSubv
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.
2016-03-20HLE/FS: Return the proper error codes when opening files.Subv
2016-03-20HLE/FS: Return the proper error codes on file Read/Write operations.Subv
These operations are limited by the open flags specified while opening the file.
2016-03-20HLE/FS: Corrected the error codes for DeleteFileSubv