summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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