summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-12-07 04:07:34 +0100
committerZach Hilman <zachhilman@gmail.com>2018-12-07 04:07:34 +0100
commit5721b8b5ad87bcfc45b3da3e80add0e447d85891 (patch)
treee47584b8f901a961c115d5ba993a8dc675233865 /src/core/file_sys
parentMerge pull request #1868 from lioncash/config (diff)
downloadyuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.gz
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.bz2
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.lz
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.xz
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.tar.zst
yuzu-5721b8b5ad87bcfc45b3da3e80add0e447d85891.zip
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/savedata_factory.cpp6
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 {
static_cast<u8>(type), title_id, user_id[1], user_id[0], save_id);
}
-SaveDataFactory::SaveDataFactory(VirtualDir save_directory) : dir(std::move(save_directory)) {}
+SaveDataFactory::SaveDataFactory(VirtualDir save_directory) : dir(std::move(save_directory)) {
+ // Delete all temporary storages
+ // On hardware, it is expected that temporary storage be empty at first use.
+ dir->DeleteSubdirectoryRecursive("temp");
+}
SaveDataFactory::~SaveDataFactory() = default;