summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/common_paths.h14
-rw-r--r--src/common/file_util.cpp14
-rw-r--r--src/common/file_util.h1
3 files changed, 3 insertions, 26 deletions
diff --git a/src/common/common_paths.h b/src/common/common_paths.h
index ae08d082a..95479a529 100644
--- a/src/common/common_paths.h
+++ b/src/common/common_paths.h
@@ -29,19 +29,6 @@
29 #endif 29 #endif
30#endif 30#endif
31 31
32// Shared data dirs (Sys and shared User for linux)
33#ifdef _WIN32
34 #define SYSDATA_DIR "sys"
35#else
36 #ifdef DATA_DIR
37 #define SYSDATA_DIR DATA_DIR "sys"
38 #define SHARED_USER_DIR DATA_DIR USERDATA_DIR DIR_SEP
39 #else
40 #define SYSDATA_DIR "sys"
41 #define SHARED_USER_DIR ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP
42 #endif
43#endif
44
45// Dirs in both User and Sys 32// Dirs in both User and Sys
46#define EUR_DIR "EUR" 33#define EUR_DIR "EUR"
47#define USA_DIR "USA" 34#define USA_DIR "USA"
@@ -53,6 +40,7 @@
53#define MAPS_DIR "maps" 40#define MAPS_DIR "maps"
54#define CACHE_DIR "cache" 41#define CACHE_DIR "cache"
55#define SDMC_DIR "sdmc" 42#define SDMC_DIR "sdmc"
43#define SYSDATA_DIR "sysdata"
56#define SHADERCACHE_DIR "shader_cache" 44#define SHADERCACHE_DIR "shader_cache"
57#define STATESAVES_DIR "state_saves" 45#define STATESAVES_DIR "state_saves"
58#define SCREENSHOTS_DIR "screenShots" 46#define SCREENSHOTS_DIR "screenShots"
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 6c4860503..7579d8c0f 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
676 paths[D_MAPS_IDX] = paths[D_USER_IDX] + MAPS_DIR DIR_SEP; 676 paths[D_MAPS_IDX] = paths[D_USER_IDX] + MAPS_DIR DIR_SEP;
677 paths[D_CACHE_IDX] = paths[D_USER_IDX] + CACHE_DIR DIR_SEP; 677 paths[D_CACHE_IDX] = paths[D_USER_IDX] + CACHE_DIR DIR_SEP;
678 paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP; 678 paths[D_SDMC_IDX] = paths[D_USER_IDX] + SDMC_DIR DIR_SEP;
679 paths[D_SYSDATA_IDX] = paths[D_USER_IDX] + SYSDATA_DIR DIR_SEP;
679 paths[D_SHADERCACHE_IDX] = paths[D_USER_IDX] + SHADERCACHE_DIR DIR_SEP; 680 paths[D_SHADERCACHE_IDX] = paths[D_USER_IDX] + SHADERCACHE_DIR DIR_SEP;
680 paths[D_SHADERS_IDX] = paths[D_USER_IDX] + SHADERS_DIR DIR_SEP; 681 paths[D_SHADERS_IDX] = paths[D_USER_IDX] + SHADERS_DIR DIR_SEP;
681 paths[D_STATESAVES_IDX] = paths[D_USER_IDX] + STATESAVES_DIR DIR_SEP; 682 paths[D_STATESAVES_IDX] = paths[D_USER_IDX] + STATESAVES_DIR DIR_SEP;
@@ -753,19 +754,6 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string &new
753 return paths[DirIDX]; 754 return paths[DirIDX];
754} 755}
755 756
756//std::string GetThemeDir(const std::string& theme_name)
757//{
758// std::string dir = FileUtil::GetUserPath(D_THEMES_IDX) + theme_name + "/";
759//
760//#if !defined(_WIN32)
761// // If theme does not exist in user's dir load from shared directory
762// if (!FileUtil::Exists(dir))
763// dir = SHARED_USER_DIR THEMES_DIR "/" + theme_name + "/";
764//#endif
765//
766// return dir;
767//}
768
769size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename) 757size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename)
770{ 758{
771 return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size()); 759 return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size());
diff --git a/src/common/file_util.h b/src/common/file_util.h
index beaf7174a..a9d48cfe8 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -27,6 +27,7 @@ enum {
27 D_STATESAVES_IDX, 27 D_STATESAVES_IDX,
28 D_SCREENSHOTS_IDX, 28 D_SCREENSHOTS_IDX,
29 D_SDMC_IDX, 29 D_SDMC_IDX,
30 D_SYSDATA_IDX,
30 D_HIRESTEXTURES_IDX, 31 D_HIRESTEXTURES_IDX,
31 D_DUMP_IDX, 32 D_DUMP_IDX,
32 D_DUMPFRAMES_IDX, 33 D_DUMPFRAMES_IDX,