diff options
| author | 2014-12-11 23:34:55 -0500 | |
|---|---|---|
| committer | 2014-12-12 00:15:47 -0500 | |
| commit | 5bac72282a340ca30e19efe2cdf6e48699d7ebfd (patch) | |
| tree | 7ab3e92aff8856e962c1017291e2cebdc79a2ef2 /src/common/file_util.cpp | |
| parent | MemMap: Renamed "GSP" heap to "linear", as this is not specific to GSP. (diff) | |
| download | yuzu-5bac72282a340ca30e19efe2cdf6e48699d7ebfd.tar.gz yuzu-5bac72282a340ca30e19efe2cdf6e48699d7ebfd.tar.xz yuzu-5bac72282a340ca30e19efe2cdf6e48699d7ebfd.zip | |
Common: Add "sysdata" to GetUserPath and cleanup.
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
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 | |||
| 769 | size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename) | 757 | size_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()); |