summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/fs/fs_user.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ResultVal: Remove MoveFrom()Yuri Kunde Schlesner2017-06-191-3/+3
| | | | | Replace it with std::move(result_val).Unwrap(), or Foo().Unwrap() in case you already have an rvalue.
* Service: Remove unnecessary includes from service.hYuri Kunde Schlesner2017-06-061-0/+3
| | | | | This has a huge fallout in terms of needing to fix other files because all service implementations included that file.
* Kernel: Add a dedicated SetHleHandler method to ServerPort/ServerSessionYuri Kunde Schlesner2017-06-061-16/+17
| | | | | | This allows attaching a HLE handle to a ServerPort at any point after it is created, allowing port/session creation to be generic between HLE and regular services.
* HLE: Move SessionRequestHandler from Service:: to Kernel::Yuri Kunde Schlesner2017-06-061-0/+1
| | | | | Most of the code that works with this is or will be in the kernel, so it's a more appropriate place for it to be.
* Moved whitelist checks from FS_User to the Archive_NCCH handler.TheKoopaKingdom2017-06-031-52/+2
|
* Created a whitelist of system archives to prevent false positives creating dialogs.TheKoopaKingdom2017-06-031-4/+51
|
* Made some changes from review comments:TheKoopaKingdom2017-06-031-4/+3
| | | | | | | | - 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.
* Added system for handling core errors in citra-qt.TheKoopaKingdom2017-06-031-0/+5
|
* Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner2017-05-251-3/+1
|
* FileSys: Move all result description to errors.hYuri Kunde Schlesner2017-05-251-3/+2
|
* IPC helpers exampleLectem2016-12-261-12/+15
|
* Merge pull request #2249 from Subv/sessions_v3Yuri Kunde Schlesner2016-12-151-7/+26
|\ | | | | Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.
| * Fixed the codestyle to match our clang-format rules.Subv2016-12-141-6/+15
| |
| * Added a framework for partially handling Session disconnections.Subv2016-12-081-0/+3
| | | | | | | | | | | | Further implementation will happen in a future commit. Fixes a regression.
| * A bit of a redesign.Subv2016-12-011-6/+12
| | | | | | | | | | | | | | Sessions and Ports are now detached from each other. HLE services are handled by means of a SessionRequestHandler class, Interface now inherits from this class. The File and Directory classes are no longer kernel objects, but SessionRequestHandlers instead, bound to a ServerSession when requested. File::OpenLinkFile now creates a new session pair and binds the File instance to it.
| * Kernel/IPC: Use Ports and Sessions as the fundamental building block of Inter Process Communication.Subv2016-12-011-4/+5
| | | | | | | | | | | | | | All handles obtained via srv::GetServiceHandle or svcConnectToPort are references to ClientSessions. Service modules will wait on the counterpart of those ClientSessions (Called ServerSessions) using svcReplyAndReceive or svcWaitSynchronization[1|N], and will be awoken when a SyncRequest is performed. HLE Interfaces are now ClientPorts which override the HandleSyncRequest virtual member function to perform command handling immediately.
* | fs_user: Update function tableLioncash2016-12-081-0/+2
|/ | | | Updated based off information from 3dbrew.
* Set client SDK version to Service APIsmailwl2016-11-301-10/+14
|
* fs: clean up log formatwwylele2016-10-021-22/+24
|
* fs: implement DeleteDirectoryRecursivelywwylele2016-10-021-1/+30
|
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-2/+1
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-1/+2
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-180/+206
|
* HLE/FS: Document some command parameters and implemented command 0x08560240 (CreateLegacySystemSaveData)Subv2016-07-031-11/+42
|
* fs: Fix what appears to be a typo (filename_size / file_size)Sam Spilsbury2016-04-231-1/+1
|
* HLE/FS: Corrected some style concerns.Subv2016-03-201-1/+1
|
* HLE/FS: Implemented GetFormatInfoSubv2016-03-201-18/+89
| | | | 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.
* HLE/FS: FS::CreateFile takes an u64 for the file size.Subv2016-03-201-3/+3
|
* Fix headerpippo29312016-03-121-1/+1
|
* GetArchiveResource stubpippo29312016-03-121-1/+25
|
* services: Update some function tablesLioncash2015-12-301-89/+107
|
* Implement FS_User::GetFreeBytesarchshift2015-10-281-1/+28
|
* Services/Logging: Log more useful information when some operations fail.Subv2015-07-211-4/+8
| | | | Namely OpenFileDirectly, OpenDirectory and OpenArchive
* ExtSavedata: Save the icon passed to CreateExtSaveData to the correct folder.Subv2015-06-021-7/+9
| | | | Organize the ExtSaveData folders as they are stored in the console.
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-3/+3
|
* APT/FS: Remove asserts that were causing false positivespurpasmart962015-05-161-3/+5
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-1/+4
|
* Services: Stubs and minor changespurpasmart962015-04-031-8/+72
|
* Service/FS: Document and log some unknown values.Subv2015-03-191-1/+26
| | | | In CreateExtSaveData, DeleteExtSaveData and CreateSystemSaveData
* Services/FS: Implemented DeleteExtSaveData, CreateSystemSaveData and DeleteSystemSaveDataSubv2015-03-141-8/+72
| | | | Also fixed a bug with CreateExtSaveData that made it unable to create ExtSaveData archives in the SDMC directory.
* Services: Moved the PTM and APT services to their own folderSubv2015-03-041-2/+2
| | | | | | This coincidentally fixes an issue about the PTM service failing to create its SharedExtSaveData archive due to the FS service not being initialized by the time the creating code runs. Ideally I'd like to move each process to its own folder, and have a single file per process that registers the service classes, which would be in their own files inside that folder. Then each service class would just call functions from the process to complete the commands.
* Services/FS: Stubbed CardSlotIsInserted to always return falseSubv2015-03-011-1/+25
| | | | We won't be emulating this for the foreseeable future and it is needed for Home Menu to boot further
* Archives: Made the Format function more generic.Subv2015-02-101-2/+2
|
* Archives: Expose the File and Directory classes to HLESubv2015-02-101-3/+3
|
* Service: Clean-up InterfaceYuri Kunde Schlesner2015-02-021-1/+1
|
* Filesys: Move creation of Handles for File/Directory to service handlersYuri Kunde Schlesner2015-02-021-12/+15
|
* Services: Stubbed more services.Subv2015-01-241-0/+11
| | | | Implemented FSUser::CreateExtSaveData
* Added Archive ID to fs:USER debug logs involving opening the archive.archshift2015-01-101-3/+3
|
* Logging: Log all called service functions (under trace). Compile out all trace logs under release for performance.archshift2015-01-101-4/+0
|
* Archives: Implemented ExtSaveData and SharedExtSaveDataSubv2014-12-301-15/+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.
* Merge pull request #330 from purpasmart96/new_srvbunnei2014-12-261-3/+0
|\ | | | | More services & small clean ups
| * More services & small clean upspurpasmart962014-12-261-3/+0
| |
* | Stubbed IsSdmcWriteable to always return writeable.archshift2014-12-241-1/+18
|/
* Merge pull request #291 from purpasmart96/licensebunnei2014-12-211-1/+1
|\ | | | | License change
| * License changepurpasmart962014-12-211-1/+1
| |
* | Added CreateFile to the FS_USER servicearchshift2014-12-211-1/+30
| | | | | | | | Tested with hwtests.
* | FS_U: Added the command to the docs of SaveData functionsSubv2014-12-201-0/+2
| |
* | SaveData: Added some documentation to FormatSaveDataSubv2014-12-181-2/+29
|/ | | | | We still don't know what the other parameters do, but they appear to be very similar to those of FormatThisUserSaveData. Most likely FormatThisUserSaveData is just an alias for FormatSaveData with LowPathType Empty
* Filesystem/Archives: Implemented the SaveData archiveSubv2014-12-181-7/+35
| | | | | | | | | | 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-161-34/+59
| | | | | | | - 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: Do archive registration using IdCode instead of nameYuri Kunde Schlesner2014-12-161-2/+2
|
* HLE: Rename namespaces to match move & fix initialization orderYuri Kunde Schlesner2014-12-161-15/+17
|
* HLE: Move kernel/archive.* to service/fs/Yuri Kunde Schlesner2014-12-161-0/+474