summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/savedata_factory.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vfs: Move vfs files to their own directoryFearlessTobi2024-01-251-1/+1
|
* fsp-srv: use program registry for SetCurrentProcessLiam2024-01-111-8/+9
|
* android: Re-add global save managert8952024-01-041-0/+9
| | | | 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>
* fs: don't enumerate hidden savedata size fileLiam2023-12-091-4/+2
|
* core: remove ResultVal typeLiam2023-08-081-19/+3
|
* fs: adjust future save pathLiam2023-05-111-2/+2
|
* general: rename CurrentProcess to ApplicationProcessLiam2023-02-141-1/+1
|
* savedata_factory: Detect future save data pathsMorph2022-10-171-7/+51
| | | | Enable compatibility for new account/device save paths planned on a future implementation.
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | 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.
* general: Get the current process program id directly from the systemMorph2021-11-041-2/+1
| | | | This allows us to avoid including KProcess' header file in files that only need to get the current process' program id.
* general: Rename GetTitleID to GetProgramIDMorph2021-11-041-1/+1
|
* general: Remove MakeResult helpersMorph2021-11-021-2/+2
| | | | This is made obsolete by the presence of implicit constructors.
* fspsrv: Implement DisableAutoSaveDataCreation (#6355)Chloe2021-06-031-1/+5
| | | - Used by Mii Edit
* general: Replace RESULT_UNKNOWN with ResultUnknownMorph2021-06-021-2/+2
| | | | Transition to PascalCase for result names.
* hle: kernel: Rename Process to KProcess.bunnei2021-05-061-1/+1
|
* file_sys: Resolve cases of variable shadowingLioncash2021-05-021-7/+11
| | | | Brings us closer to enabling -Wshadow as an error in the core code.
* savedata_factory: Eliminate usage of the global system instanceLioncash2020-11-271-8/+10
| | | | Now there's only two meaningful instances left in core.
* fs: Rename SaveDataDescriptor to SaveDataAttributeMorph2020-07-301-17/+16
|
* file_sys: savefata_factory: Update to support DeviceSaveData.bunnei2020-05-111-3/+6
|
* file_sys: Resolve sign conversion warningsLioncash2019-11-121-2/+2
| | | | Resolves a few trivial sign conversion/mismatch errors.
* savedata_factory: Automatically create certain savedataZach Hilman2019-10-221-0/+12
| | | | | 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.
* core: Remove Core::CurrentProcess()Lioncash2019-10-061-2/+3
| | | | | | 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.
* filesystem: Add const qualification to various accessorsZach Hilman2019-09-211-3/+4
|
* savedata_factory: Implement savedata creation and don't create dir on openZach Hilman2019-09-211-26/+39
| | | Matches hardware behavior and eliminates some nasty behavior we were doing that wasn't hw-accurate at all.
* service/fsp_srv: Don't pass SaveDataDescriptor instances by value.Lioncash2019-04-051-1/+1
| | | | | Passing around a 64 byte data struct by value is kind of wasteful, instead pass a reference to the struct.
* service/fsp_srv: Update SaveDataInfo and SaveDataDescriptor structsLioncash2019-04-051-2/+4
| | | | | I realized that I updated the documentation on SwitchBrew a while ago, but never actually updated the structs within yuzu.
* am: Implement GetSaveDataSize and ExtendSaveDataZach Hilman2018-12-271-1/+1
| | | These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others.
* savedata_factory: Partially implement IVFC save sizes using filesZach Hilman2018-12-271-0/+30
| | | 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.
* Fixed uninitialized memory due to missing returns in canaryDavid Marcec2018-12-191-0/+1
| | | | Functions which are suppose to crash on non canary builds usually don't return anything which lead to uninitialized memory being used.
* savedata_factory: Add support for CacheStorageZach Hilman2018-12-071-0/+2
|
* savedata_factory: Delete TemporaryStorage on startupZach Hilman2018-12-071-1/+5
| | | | Mimics hardware behavior.
* ns: Implement command 400: GetApplicationControlDataZach Hilman2018-10-291-1/+1
| | | 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.
* savedata_factory: Expose accessors for SaveDataSpaceZach Hilman2018-10-291-14/+18
|
* savedata_factory: Add TemporaryStorage SaveDataSpaceIdZach Hilman2018-10-161-1/+4
| | | | Required for TemporaryStorage saves (in addition to SaveDataType)
* savedata_factory: Add support for DeviceSaveDataZach Hilman2018-10-161-0/+8
| | | | Uses the same path as SaveData except with UID 0. Adds a warning if UID is not 0.
* kernel/process: Make data member variables privateLioncash2018-09-301-1/+1
| | | | | | | 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.
* Merge pull request #1364 from lioncash/contentbunnei2018-09-211-0/+2
|\ | | | | file-sys: Default heavy-weight class destructors in the cpp file
| * file-sys: Default heavy-weight class destructors in the cpp fileLioncash2018-09-201-0/+2
| | | | | | | | | | | | | | | | | | | | 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.
* | savedata_factory: Add TemporaryStorage SaveDataTypeZach Hilman2018-09-191-4/+7
|/ | | Seems to be used by NSO NES Emulator
* file_sys: Replace includes with forward declarations where applicableLioncash2018-09-041-0/+1
| | | | | Cuts down on include dependencies, resulting in less files that need to be rebuilt when certain things are changed.
* core/core: Replace includes with forward declarations where applicableLioncash2018-08-311-0/+1
| | | | | | | | | | | 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.
* qt/main: Port part of citra(#3411), open savedata workstech4me2018-08-211-1/+1
|
* savedata_factory: Make SaveDataDescriptor's DebugInfo() function a const member functionLioncash2018-07-191-1/+1
| | | | This function doesn't alter class state.
* Virtual Filesystem 2: Electric Boogaloo (#676)Zach Hilman2018-07-191-21/+13
| | | | | | | | | | * 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-22/+73
|
* savedata_factory: Always create a save directory for games.bunnei2018-07-081-0/+9
|
* Revert "Virtual Filesystem (#597)"bunnei2018-07-081-0/+54
| | | | This reverts commit 77c684c1140f6bf3fb7d4560d06d2efb1a2ee5e2.
* Virtual Filesystem (#597)Zach Hilman2018-07-061-54/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Rename logging macro back to LOG_*James Rowe2018-07-031-2/+2
|
* file-sys: convert a StringFromFormat call into fmt::format in GetFullPath()Lioncash2018-04-251-4/+1
| | | | | Lessens the amount to read and gets rid of the PRIX64 macro, allowing us to use a single string for the whole path, making it easier to read.
* file-sys: Move logging macros over to the new fmt-capable onesLioncash2018-04-251-2/+2
|
* core: Move process creation out of global state.bunnei2018-03-141-1/+2
|
* FS: Make EnsureSaveData create the savedata folder when called for the first time.Subv2018-03-041-10/+24
|
* SaveData: Use the current titleid when opening the savedata archive.Subv2018-03-021-2/+3
|
* Filesystem: Added a SaveData Factory and associated Disk_FileSystem.Subv2018-03-021-0/+41