aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/savedata_factory.cpp
AgeCommit message (Collapse)Author
2024-02-19fs: Add and use fs_save_data_types.hFearlessTobi
2024-01-25vfs: Move vfs files to their own directoryFearlessTobi
2024-01-11fsp-srv: use program registry for SetCurrentProcessLiam
2024-01-04android: Re-add global save managert895
Reworked to correctly collect and import/export saves that could exist in either /nand/user/save/000...000/<user id> or /nand/user/save/account/<user id raw string>
2023-12-09fs: don't enumerate hidden savedata size fileLiam
2023-08-08core: remove ResultVal typeLiam
2023-05-11fs: adjust future save pathLiam
2023-02-13general: rename CurrentProcess to ApplicationProcessLiam
2022-10-16savedata_factory: Detect future save data pathsMorph
Enable compatibility for new account/device save paths planned on a future implementation.
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2021-11-04general: Get the current process program id directly from the systemMorph
This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
2021-11-04general: Rename GetTitleID to GetProgramIDMorph
2021-11-02general: Remove MakeResult helpersMorph
This is made obsolete by the presence of implicit constructors.
2021-06-02fspsrv: Implement DisableAutoSaveDataCreation (#6355)Chloe
- Used by Mii Edit
2021-06-02general: Replace RESULT_UNKNOWN with ResultUnknownMorph
Transition to PascalCase for result names.
2021-05-05hle: kernel: Rename Process to KProcess.bunnei
2021-05-02file_sys: Resolve cases of variable shadowingLioncash
Brings us closer to enabling -Wshadow as an error in the core code.
2020-11-27savedata_factory: Eliminate usage of the global system instanceLioncash
Now there's only two meaningful instances left in core.
2020-07-30fs: Rename SaveDataDescriptor to SaveDataAttributeMorph
2020-05-11file_sys: savefata_factory: Update to support DeviceSaveData.bunnei
2019-11-12file_sys: Resolve sign conversion warningsLioncash
Resolves a few trivial sign conversion/mismatch errors.
2019-10-22savedata_factory: Automatically create certain savedataZach Hilman
After further hardware investigation, it appears that some games, perhaps those more lazily coded, will not call EnsureSaveData, meaning that they expect the normal (current) save to be automatically made. Additionally, some games do not create a cache or temporary save before use. In these 3 specific instances, the save is created automatically for the game if it doesn't exist.
2019-10-06core: Remove Core::CurrentProcess()Lioncash
This only encourages the use of the global system instance (which will be phased out long-term). Instead, we use the direct system function call directly to remove the appealing but discouraged short-hand.
2019-09-21filesystem: Add const qualification to various accessorsZach Hilman
2019-09-21savedata_factory: Implement savedata creation and don't create dir on openZach Hilman
Matches hardware behavior and eliminates some nasty behavior we were doing that wasn't hw-accurate at all.
2019-04-05service/fsp_srv: Don't pass SaveDataDescriptor instances by value.Lioncash
Passing around a 64 byte data struct by value is kind of wasteful, instead pass a reference to the struct.
2019-04-05service/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structsLioncash
I realized that I updated the documentation on SwitchBrew a while ago, but never actually updated the structs within yuzu.
2018-12-27am: Implement GetSaveDataSize and ExtendSaveDataZach Hilman
These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others.
2018-12-27savedata_factory: Partially implement IVFC save sizes using filesZach Hilman
This stores a file in the save directory called '.yuzu_save_size' which stores the two save sizes (normal area and journaled area) sequentially as u64s.
2018-12-19Fixed uninitialized memory due to missing returns in canaryDavid Marcec
Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
2018-12-07savedata_factory: Add support for CacheStorageZach Hilman
2018-12-06savedata_factory: Delete TemporaryStorage on startupZach Hilman
Mimics hardware behavior.
2018-10-29ns: Implement command 400: GetApplicationControlDataZach Hilman
Returns the raw NACP bytes and the raw icon bytes into a title-provided buffer. Pulls from Registration Cache for control data, returning all zeros should it not exist.
2018-10-29savedata_factory: Expose accessors for SaveDataSpaceZach Hilman
2018-10-16savedata_factory: Add TemporaryStorage SaveDataSpaceIdZach Hilman
Required for TemporaryStorage saves (in addition to SaveDataType)
2018-10-16savedata_factory: Add support for DeviceSaveDataZach Hilman
Uses the same path as SaveData except with UID 0. Adds a warning if UID is not 0.
2018-09-30kernel/process: Make data member variables privateLioncash
Makes the public interface consistent in terms of how accesses are done on a process object. It also makes it slightly nicer to reason about the logic of the process class, as we don't want to expose everything to external code.
2018-09-20Merge pull request #1364 from lioncash/contentbunnei
file-sys: Default heavy-weight class destructors in the cpp file
2018-09-19file-sys: Default heavy-weight class destructors in the cpp fileLioncash
Several classes have a lot of non-trivial members within them, or don't but likely should have the destructor defaulted in the cpp file for future-proofing/being more friendly to forward declarations. Leaving the destructor unspecified allows the compiler to inline the destruction code all over the place, which is generally undesirable from a code bloat perspective.
2018-09-19savedata_factory: Add TemporaryStorage SaveDataTypeZach Hilman
Seems to be used by NSO NES Emulator
2018-09-03file_sys: Replace includes with forward declarations where applicableLioncash
Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
2018-08-31core/core: Replace includes with forward declarations where applicableLioncash
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
2018-08-21qt/main: Port part of citra(#3411), open savedata workstech4me
2018-07-18savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const ↵Lioncash
member function This function doesn't alter class state.
2018-07-18Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman
* Virtual Filesystem * Fix delete bug and documentate * Review fixes + other stuff * Fix puyo regression
2018-07-17General Filesystem and Save Data Fixes (#670)Zach Hilman
2018-07-08savedata_factory: Always create a save directory for games.bunnei
2018-07-07Revert "Virtual Filesystem (#597)"bunnei
This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
2018-07-06Virtual Filesystem (#597)Zach Hilman
* 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
2018-07-02Rename logging macro back to LOG_*James Rowe