diff options
| author | 2018-12-06 22:07:34 -0500 | |
|---|---|---|
| committer | 2018-12-06 22:07:34 -0500 | |
| commit | 5721b8b5ad87bcfc45b3da3e80add0e447d85891 (patch) | |
| tree | e47584b8f901a961c115d5ba993a8dc675233865 /src/core | |
| parent | Merge pull request #1868 from lioncash/config (diff) | |
| download | yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.gz yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.xz yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.zip | |
savedata_factory: Delete TemporaryStorage on startup
Mimics hardware behavior.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/file_sys/savedata_factory.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp index 5434f2149..37566e2e7 100644 --- a/src/core/file_sys/savedata_factory.cpp +++ b/src/core/file_sys/savedata_factory.cpp | |||
| @@ -18,7 +18,11 @@ std::string SaveDataDescriptor::DebugInfo() const { | |||
| 18 | static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id); | 18 | static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id); |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | SaveDataFactory::SaveDataFactory(VirtualDir save_directory) : dir(std::move(save_directory)) {} | 21 | SaveDataFactory::SaveDataFactory(VirtualDir save_directory) : dir(std::move(save_directory)) { |
| 22 | // Delete all temporary storages | ||
| 23 | // On hardware, it is expected that temporary storage be empty at first use. | ||
| 24 | dir->DeleteSubdirectoryRecursive("temp"); | ||
| 25 | } | ||
| 22 | 26 | ||
| 23 | SaveDataFactory::~SaveDataFactory() = default; | 27 | SaveDataFactory::~SaveDataFactory() = default; |
| 24 | 28 | ||