summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Archives: Implemented ExtSaveData and SharedExtSaveDataSubv2014-12-308-15/+168
| | | | | | | | 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.
* FileSys: Clean up according to the coding style, and remove redundant namespaced names.Emmanuel Gil Peyrot2014-12-249-169/+97
|
* CFG: Create a new subfolder cfg inside service to handle cfgSubv2014-12-211-0/+1
| | | | Moved most of the shared CFG code there, implemented a few CFG:I functions
* Style: Addressed some commentsSubv2014-12-211-2/+7
|
* CFG: Refactored how the config file works.Subv2014-12-211-1/+1
| | | | It is now kept in memory as per 3dbrew, all updates happen on memory, then they can be saved using UpdateConfigNANDSavegame.
* CFG: Implemented the GetConfigInfoBlk2 function.Subv2014-12-213-3/+9
| | | | | | Added a "config" file to the CFG process service (CFG:U), and added a few default blocks to it. Implemented GetSystemModel and GetModelNintendo2DS
* Merge pull request #291 from purpasmart96/licensebunnei2014-12-2117-17/+17
|\ | | | | License change
| * License changepurpasmart962014-12-2117-17/+17
| |
* | Merge pull request #271 from archshift/createfbunnei2014-12-215-0/+44
|\ \ | | | | | | Added CreateFile to the FS_USER service
| * | Added CreateFile to the FS_USER servicearchshift2014-12-215-0/+44
| | | | | | | | | | | | Tested with hwtests.
* | | Merge pull request #315 from chinhodado/masterbunnei2014-12-201-1/+10
|\ \ \ | |/ / |/| | Clean up some warnings
| * | Clean up some warningsChin2014-12-201-1/+10
| |/
* / Common: Add a clone of std::make_uniqueYuri Kunde Schlesner2014-12-201-2/+3
|/
* SystemSaveData: Added a TODO to move it to the NAND.Subv2014-12-181-1/+3
| | | | Maybe sometime when we actually implement that
* SaveData: Implemented the SystemSaveData archive.Subv2014-12-183-2/+65
| | | | It will be stored in the /syssavedata folder. This archive is user by various Services and possibly games via the FS:U service.
* Filesystem/Archives: Implemented the SaveData archiveSubv2014-12-1812-473/+344
| | | | | | | | | | 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
* FS.Archive: Clean up treatment of archives and their handlesYuri Kunde Schlesner2014-12-167-190/+21
| | | | | | | - Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles.
* Service.FS: Rename FileSys::File to FileBackendYuri Kunde Schlesner2014-12-168-15/+15
|
* Service.FS: Rename FileSys::Directory to DirectoryBackendYuri Kunde Schlesner2014-12-168-15/+15
|
* Service.FS: Rename FileSys::Archive to ArchiveBackendYuri Kunde Schlesner2014-12-163-6/+6
|
* Service.FS: Do archive registration using IdCode instead of nameYuri Kunde Schlesner2014-12-163-25/+4
|
* Convert old logging calls to new logging macrosYuri Kunde Schlesner2014-12-135-24/+28
|
* Merge pull request #264 from Subv/filesbunnei2014-12-091-3/+6
|\ | | | | Kernel/File: Fixed file read/write hwtests
| * Kernel/File: Fixed file read/write hwtestsSubv2014-12-081-3/+6
| | | | | | | | | | | | The 3DS allows the user to read from files opened with the Write access modifier, even if he did not specify the Read access modifier. Open the files in binary mode so that we can prevent CR/LF problems in Windows, where a line-end is replaced by these two bytes instead of just 0xA, this was causing problems with the GetSize test
* | Make OpenDirectory fail if the directory doesn't existarchshift2014-12-076-3/+35
|/ | | | | | | This is in line with what the hardware itself does. It does this by splitting the initial directory opening into Directory.Open(), which will return false if a stat fails. Then, Archive::OpenDirectory will return nullptr, and archive.cpp will return an error code .
* Merge pull request #222 from archshift/renamexyzbunnei2014-12-055-0/+66
|\ | | | | Implemented RenameFile and RenameDirectory in FS:USER
| * Updated archive.cpp functions for proper error handlingarchshift2014-12-042-24/+0
| |
| * Implemented RenameDirectory in FS:USERarchshift2014-11-255-0/+45
| |
| * Implemented RenameFile in FS:USERarchshift2014-11-255-0/+45
| |
* | Fixed formatting and switch statement warningsvaguilar2014-11-272-1/+3
|/
* Merge pull request #191 from archshift/deletexyzbunnei2014-11-245-0/+80
|\ | | | | Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.
| * Added DeleteFile and DeleteDirectory functions to FS:USER and the archives.archshift2014-11-235-0/+80
| |
* | Remove trailing spaces in every file but the ones imported from SkyEye, AOSP or generatedEmmanuel Gil Peyrot2014-11-192-2/+2
| |
* | Merge pull request #209 from lioncash/warnTony Wasserka2014-11-181-1/+1
|\ \ | | | | | | directory_sdmc: Fix a signed/unsigned mismatch comparison
| * | directory_sdmc: Fix a signed/unsigned mismatch comparisonLioncash2014-11-181-1/+1
| |/
* / Remove extraneous semicolonsLioncash2014-11-183-3/+3
|/
* FileSys: Updated backend code to use FileSys::Path instead of string for paths.bunnei2014-11-189-24/+24
|
* FileSys: Added DebugStr method to Path class.bunnei2014-11-181-0/+29
|
* Use std::u16string for conversion between UTF-8 and UTF-16, FS:USER functionsarchshift2014-11-131-0/+99
|
* Added CreateDirectory function to service/fs.cpp, and in Archive.archshift2014-11-025-0/+40
|
* Fix some warningsSean2014-10-302-2/+2
|
* Use config files to store whether SDMC is enabled or notarchshift2014-10-231-2/+8
| | | | Before, it used to use whether the directory actually existed. As a result, .citra-emu/sdmc was never auto-created (something quite confusing to me until I read through the logs).
* Common: Add a helper function to generate a 8.3 filename from a long one.Emmanuel Gil Peyrot2014-10-063-29/+27
| | | | Core: Fix the SDMC Directory implementation to make blargSnes work.
* FileSys: Add static asserts for the Directory struct, and fix its fields position.Emmanuel Gil Peyrot2014-10-061-2/+8
|
* FileSys: split the constructor into an Open method, in order to notify the opener something went wrong.Emmanuel Gil Peyrot2014-10-066-14/+54
| | | | Kernel: Return an invalid handle to OpenFile when it failed to open.
* FileSys/Kernel: Implement SetSize service call for File objects.Emmanuel Gil Peyrot2014-10-065-0/+41
|
* FileSys: Add forgotten docstrings.Emmanuel Gil Peyrot2014-10-067-4/+35
|
* Fix warnings in core and commonLioncash2014-09-281-1/+1
|
* Core: Add a method to obtain a Directory from an Archive.Emmanuel Gil Peyrot2014-09-175-0/+44
|
* Core: Add a Directory object, with both a stub and a passthrough implementations.Emmanuel Gil Peyrot2014-09-175-0/+259
|
* Core: Add a passthrough backend for the filesystem, exposed as SDMC.Emmanuel Gil Peyrot2014-09-174-0/+298
|
* Core: Add a new File class, obtainable from an Archive, and a stub implementation.Emmanuel Gil Peyrot2014-09-176-0/+205
|
* Added FS functions to Archive and Archive_RomFSarchshift2014-08-233-8/+57
|
* Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS virtual functions as "override".bunnei2014-07-051-4/+4
|
* Marked AppLoader_ELF, AppLoader_NCCH, and Archive_RomFS classes as "final"bunnei2014-07-051-1/+1
|
* Loader: Updated read methods to be constbunnei2014-07-052-2/+2
| | | | - Required "file" handle to be made local and explicitly opened/closed as needed
* FileSys: Added preliminary support for applications reading the RomFS archive.bunnei2014-07-054-138/+150
| | | | | | | | | | 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.
* Core: Removed unused directory_file_system and meta_file_system modules.bunnei2014-06-274-1453/+0
| | | | Core: Updated CMakeLists.txt to remove directory_file_system and meta_file_system modules.
* fixes to build on linuxbunnei2014-04-232-22/+22
|
* fixed project includes to use new directory structurebunnei2014-04-095-20/+15
|
* got rid of 'src' folders in each sub-projectbunnei2014-04-095-0/+1596