summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/fs/archive.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-03-20HLE/FS: Corrected some style concerns.Subv1-1/+1
2016-03-20HLE/FS: Implemented GetFormatInfoSubv1-2/+13
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: FS::CreateFile takes an u64 for the file size.Subv1-1/+1
2015-10-28Implement FS_User::GetFreeBytesarchshift1-0/+7
2015-09-10General: Fix up doxygen commentsLioncash1-1/+1
2015-06-28Core: Cleanup file_sys includes.Emmanuel Gil Peyrot1-5/+8
2015-06-02ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder.Subv1-1/+3
Organize the ExtSaveData folders as they are stored in the console.
2015-05-07FileSys: Clean-up includes, de-inline destructorsYuri Kunde Schlesner1-10/+6
2015-03-14Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveDataSubv1-1/+33
Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory.
2015-02-10Archives: Made the Format function more generic.Subv1-2/+5
2015-02-10Archives: Expose the File and Directory classes to HLESubv1-2/+32
2015-02-10FS: Allow multiple instances of the same archive type to be open at onceYuri Kunde Schlesner1-2/+2
2015-02-02Filesys: Move creation of Handles for File/Directory to service handlersYuri Kunde Schlesner1-4/+10
2015-01-24Services: Stubbed more services.Subv1-0/+8
Implemented FSUser::CreateExtSaveData
2015-01-20core: Fix a few docstringsLioncash1-1/+1
2015-01-04Archives: Make SYSTEM_ID and SDCARD_ID stringsSubv1-2/+2
2015-01-04Archives: Changed the way paths are built for the archives.Subv1-0/+5
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
2015-01-03Archives: Reduced duplicate code in RomFS and SaveCheck.Subv1-1/+1
Fixed a few warnings and cleaned up the code
2015-01-03SaveDataCheck: Preliminary work in this archive.Subv1-0/+1
This allows Steel Diver to boot further, some files are needed. This is still not ready and needs a big cleanup, this will possibly be delayed until the way we handle archives is fixed (with factory classes instead of ahead-of-time creation of archives)
2014-12-30Archives: Implemented ExtSaveData and SharedExtSaveDataSubv1-1/+2
They will be stored in /extsavedata/SDMC and /extsavedata/NAND respectively. Also redirect some APT_A functions to their APT_U equivalents. Implemented the gamecoin.dat file in SharedExtSaveData in the PTM module. Implemented formatting the savegame. Retake a previous savegame if it exists instead of reporting them as not formatted every time a game is loaded.
2014-12-21Added CreateFile to the FS_USER servicearchshift1-0/+9
Tested with hwtests.
2014-12-21License changepurpasmart961-1/+1
2014-12-18Filesystem/Archives: Implemented the SaveData archiveSubv1-0/+6
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
2014-12-16FS.Archive: Clean up treatment of archives and their handlesYuri Kunde Schlesner1-12/+14
- Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles.
2014-12-16Service.FS: Rename FileSys::Archive to ArchiveBackendYuri Kunde Schlesner1-2/+2
2014-12-16Service.FS: Do archive registration using IdCode instead of nameYuri Kunde Schlesner1-4/+15
2014-12-16HLE: Rename namespaces to match move & fix initialization orderYuri Kunde Schlesner1-5/+4
2014-12-16HLE: Move kernel/archive.* to service/fs/Yuri Kunde Schlesner1-0/+0
2014-12-04Updated archive.cpp functions for proper error handlingarchshift1-7/+7
2014-11-25Implemented RenameDirectory in FS:USERarchshift1-0/+11
2014-11-25Implemented RenameFile in FS:USERarchshift1-0/+11
2014-11-24HLE: Revamp error handling throrough the HLE codeYuri Kunde Schlesner1-12/+11
All service calls in the CTR OS return result codes indicating the success or failure of the call. Previous to this commit, Citra's HLE emulation of services and the kernel universally either ignored errors or returned dummy -1 error codes. This commit makes an initial effort to provide an infrastructure for error reporting and propagation which can be use going forward to make HLE calls accurately return errors as the original system. A few parts of the code have been updated to use the new system where applicable. One part of this effort is the definition of the `ResultCode` type, which provides facilities for constructing and parsing error codes in the structured format used by the CTR. The `ResultVal` type builds on `ResultCode` by providing a container for values returned by function that can report errors. It enforces that correct error checking will be done on function returns by preventing the use of the return value if the function returned an error code. Currently this change is mostly internal since errors are still suppressed on the ARM<->HLE border, as a temporary compatibility hack. As functionality is implemented and tested this hack can be eventually removed.
2014-11-23Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.archshift1-0/+16
2014-11-18FileSys: Updated backend code to use FileSys::Path instead of string for paths.bunnei1-3/+3
2014-11-02Added CreateDirectory function to service/fs.cpp, and in Archive.archshift1-2/+10
2014-09-17Kernel: Implement the Close command for Archive, File and Directory.Emmanuel Gil Peyrot1-0/+7
2014-09-17Kernel: Add a Directory object and a getter for it from an Archive object.Emmanuel Gil Peyrot1-0/+8
2014-09-17Kernel: Add a File object and a getter for it from an Archive object.Emmanuel Gil Peyrot1-0/+9
2014-07-05Archive: Added Init/Shutdown methods to reset kernel archive state.bunnei1-0/+6
2014-07-05FileSys: Added preliminary support for applications reading the RomFS archive.bunnei1-4/+13
Archive: Fixed brace ugliness for neobrain :) FS: Commented out unused local variables to prevent warnings. ...But keeping them here for future use. archive_romfs: Removed unused #include.
2014-06-27Kernel: Added stubbed code to support creation of kernel Archive objects.bunnei1-0/+23