summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-18 02:02:57 +0100
committerbunnei <bunneidev@gmail.com>2014-12-18 02:02:57 +0100
commit94a103a00080f3f8f9ca9348ec0c5e819c6313e1 (patch)
tree9e698ba00993a4aff1df4d60f9fcf3cf135ee76c /src/common
parentMerge pull request #293 from lioncash/sops (diff)
parentFilesystem/Archives: Implemented the SaveData archive (diff)
downloadyuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.gz
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.bz2
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.lz
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.xz
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.tar.zst
yuzu-94a103a00080f3f8f9ca9348ec0c5e819c6313e1.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common_paths.h1
-rw-r--r--src/common/file_util.cpp2
-rw-r--r--src/common/file_util.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/common/common_paths.h b/src/common/common_paths.h
index 42e1a29c1..a86889756 100644
--- a/src/common/common_paths.h
+++ b/src/common/common_paths.h
@@ -40,6 +40,7 @@
#define MAPS_DIR "maps"
#define CACHE_DIR "cache"
#define SDMC_DIR "sdmc"
+#define SAVEDATA_DIR "savedata"
#define SYSDATA_DIR "sysdata"
#define SHADERCACHE_DIR "shader_cache"
#define STATESAVES_DIR "state_saves"
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 88c46c117..42cdf3262 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -676,6 +676,7 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new
paths[D_MAPS_IDX] = paths[D_USER_IDX] + MAPS_DIR DIR_SEP;
paths[D_CACHE_IDX] = paths[D_USER_IDX] + CACHE_DIR DIR_SEP;
paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP;
+ paths[D_SAVEDATA_IDX] = paths[D_USER_IDX] + SAVEDATA_DIR DIR_SEP;
paths[D_SYSDATA_IDX] = paths[D_USER_IDX] + SYSDATA_DIR DIR_SEP;
paths[D_SHADERCACHE_IDX] = paths[D_USER_IDX] + SHADERCACHE_DIR DIR_SEP;
paths[D_SHADERS_IDX] = paths[D_USER_IDX] + SHADERS_DIR DIR_SEP;
@@ -718,6 +719,7 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new
paths[D_MAPS_IDX] = paths[D_USER_IDX] + MAPS_DIR DIR_SEP;
paths[D_CACHE_IDX] = paths[D_USER_IDX] + CACHE_DIR DIR_SEP;
paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP;
+ paths[D_SAVEDATA_IDX] = paths[D_USER_IDX] + SAVEDATA_DIR DIR_SEP;
paths[D_SHADERCACHE_IDX] = paths[D_USER_IDX] + SHADERCACHE_DIR DIR_SEP;
paths[D_SHADERS_IDX] = paths[D_USER_IDX] + SHADERS_DIR DIR_SEP;
paths[D_STATESAVES_IDX] = paths[D_USER_IDX] + STATESAVES_DIR DIR_SEP;
diff --git a/src/common/file_util.h b/src/common/file_util.h
index a9d48cfe8..e691b6139 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -27,6 +27,7 @@ enum {
D_STATESAVES_IDX,
D_SCREENSHOTS_IDX,
D_SDMC_IDX,
+ D_SAVEDATA_IDX,
D_SYSDATA_IDX,
D_HIRESTEXTURES_IDX,
D_DUMP_IDX,