summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/filesystem/fsp_srv.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fsp_srv: Fix filesystem access loggingMorph2021-06-161-7/+5
| | | | | | | | This introduces a new setting Enable FS Access Log which saves the filesystem access log to sdmc:/FsAccessLog.txt If this setting is not enabled, this will indicate to FS to not call OutputAccessLogToSdCard. Fixes softlocks during loading in Xenoblade Chronicles 2 when certain DLC is enabled.
* fspsrv: Implement DisableAutoSaveDataCreation (#6355)Chloe2021-06-031-0/+1
| | | - Used by Mii Edit
* fsp-srv: Update to 12.xMorph2021-04-071-1/+1
|
* fsp_srv: Implement OpenDataStorageWithProgramIndexMorph2020-12-081-0/+1
| | | | - Used by RollerCoaster Tycoon 3: Complete Edition
* service: Eliminate usages of the global system instanceLioncash2020-11-271-2/+1
| | | | | Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
* patch_manager: Remove usages of the global system instanceLioncash2020-11-181-2/+5
| | | | | | | With this, only 19 usages of the global system instance remain within the core library. We're almost there.
* fsp-srv: Stub Read/WriteSaveDataFileSystemExtraDataWithMaskBySaveDataAttributeMorph2020-07-301-2/+4
| | | | Stub these 2 service commands required for Animal Crossing: New Horizons Update 1.4.0
* service: fsp_srv: Stub implementation of OpenMultiCommitManager.bunnei2020-05-111-0/+1
|
* configure_debug: Move reporting option to loggingZach Hilman2019-09-221-1/+1
|
* yuzu: Port old usages of Filesystem namespace to FilesystemControllerZach Hilman2019-09-211-1/+3
|
* fsp-srv: Implement GetAccessLogVersionInfoZach Hilman2019-06-291-1/+3
| | | | Returns some misc. data about logging to help the game determine if it should log.
* fsp-srv: Implement OutputAccessLogToSdCardZach Hilman2019-06-291-1/+23
| | | | Allows games to log data to the SD.
* fsp_srv: Unstub SetCurrentProcessLioncash2019-03-181-0/+1
| | | | | This just acts as a basic setter for a given PID value and performs no further checking, so we can just store the passed in value.
* service/fsp-srv: Update function tablesLioncash2019-01-301-5/+5
| | | | Updates function tables based off information provided by SwitchBrew.
* fsp_srv: Implement command 61: OpenSaveDataInfoReaderBySaveDataSpaceIdZach Hilman2018-10-291-0/+1
| | | | Needed by Checkpoint. Returns an object that can iterate through all savedata on the system.
* hle/service: Default constructors and destructors in the cpp file where applicableLioncash2018-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
* filesystem: Implement OpenReadOnlySaveDataFilesystemZach Hilman2018-09-011-0/+1
|
* filesystem: Add OpenFileSystemWithPatchZach Hilman2018-09-011-0/+1
|
* filesystem: Add support for loading of system archivesZach Hilman2018-08-191-0/+1
|
* Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman2018-07-191-1/+1
| | | | | | | | | | * Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
* General Filesystem and Save Data Fixes (#670)Zach Hilman2018-07-171-2/+0
|
* Revert "Virtual Filesystem (#597)"bunnei2018-07-081-1/+1
| | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* Virtual Filesystem (#597)Zach Hilman2018-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add VfsFile and VfsDirectory classes * Finish abstract Vfs classes * Implement RealVfsFile (computer fs backend) * Finish RealVfsFile and RealVfsDirectory * Finished OffsetVfsFile * More changes * Fix import paths * Major refactor * Remove double const * Use experimental/filesystem or filesystem depending on compiler * Port partition_filesystem * More changes * More Overhaul * FSP_SRV fixes * Fixes and testing * Try to get filesystem to compile * Filesystem on linux * Remove std::filesystem and document/test * Compile fixes * Missing include * Bug fixes * Fixes * Rename v_file and v_dir * clang-format fix * Rename NGLOG_* to LOG_* * Most review changes * Fix TODO * Guess 'main' to be Directory by filename
* service: Use nested namespace specifiers where applicableLioncash2018-04-201-4/+2
| | | | Tidies up namespace declarations
* Fix spelling of InitializeJames Rowe2018-04-071-1/+1
|
* FS: Stubbed CreateSaveData. It currently does nothing.Subv2018-03-041-0/+1
|
* FS: Implement MountSaveData and some of the IFile interface.Subv2018-03-021-0/+1
|
* fsp_srv: Stub MountSdCard.bunnei2018-02-101-0/+1
|
* fsp_srv: Various improvements to IStorage:Read implementation.bunnei2018-01-211-2/+11
|
* filesystem: Implement basic IStorage functionality.David Marcec2018-01-211-0/+25