summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-13 04:12:12 +0100
committerbunnei <bunneidev@gmail.com>2014-12-13 04:12:12 +0100
commita6791e4fc73dda4853c8363d8ecf5094dbedd0ab (patch)
tree279039386bc3c63f2eda6530fa325334ddadb957 /src/common/file_util.cpp
parentMerge pull request #261 from neobrain/boost (diff)
parentAPT_U: Added GetSharedFont service function. (diff)
downloadyuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar.gz
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar.bz2
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar.lz
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar.xz
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.tar.zst
yuzu-a6791e4fc73dda4853c8363d8ecf5094dbedd0ab.zip
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r--src/common/file_util.cpp14
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
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_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;
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
return paths[DirIDX];
}
-//std::string GetThemeDir(const std::string& theme_name)
-//{
-// std::string dir = FileUtil::GetUserPath(D_THEMES_IDX) + theme_name + "/";
-//
-//#if !defined(_WIN32)
-// // If theme does not exist in user's dir load from shared directory
-// if (!FileUtil::Exists(dir))
-// dir = SHARED_USER_DIR THEMES_DIR "/" + theme_name + "/";
-//#endif
-//
-// return dir;
-//}
-
size_t WriteStringToFile(bool text_file, const std::string &str, const char *filename)
{
return FileUtil::IOFile(filename, text_file ? "w" : "wb").WriteBytes(str.data(), str.size());