diff options
author | freiro <f73b2894@opayq.com> | 2016-11-24 16:42:31 +0100 |
---|---|---|
committer | freiro <f73b2894@opayq.com> | 2016-11-24 16:42:31 +0100 |
commit | 79317b63d9c509bae2457c7c52ea3b1e71c07ea0 (patch) | |
tree | 748391a0c05039605f1dff09a11561978258c71f /src/common | |
parent | Return by value and other fixes (diff) | |
download | yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar.gz yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar.bz2 yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar.lz yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar.xz yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.tar.zst yuzu-79317b63d9c509bae2457c7c52ea3b1e71c07ea0.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/file_util.cpp | 6 | ||||
-rw-r--r-- | src/common/file_util.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index a1c12cbce..6661fe96a 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -598,10 +598,10 @@ std::string& GetExeDirectory() { return exe_path; } -std::string AppDataLocalDirectory() { +std::string AppDataRoamingDirectory() { PWSTR pw_local_path = nullptr; // Only supported by Windows Vista or later - SHGetKnownFolderPath(FOLDERID_LocalAppData, 0, nullptr, &pw_local_path); + SHGetKnownFolderPath(FOLDERID_RoamingAppData, 0, nullptr, &pw_local_path); std::string local_path = Common::UTF16ToUTF8(pw_local_path); CoTaskMemFree(pw_local_path); return local_path; @@ -685,7 +685,7 @@ const std::string& GetUserPath(const unsigned int DirIDX, const std::string& new paths[D_USER_IDX] = GetExeDirectory() + DIR_SEP USERDATA_DIR DIR_SEP; if (!FileUtil::IsDirectory(paths[D_USER_IDX])) { paths[D_USER_IDX] = - AppDataLocalDirectory() + DIR_SEP EMU_DATA_DIR DIR_SEP USERDATA_DIR DIR_SEP; + AppDataRoamingDirectory() + DIR_SEP EMU_DATA_DIR DIR_SEP USERDATA_DIR DIR_SEP; } paths[D_CONFIG_IDX] = paths[D_USER_IDX] + CONFIG_DIR DIR_SEP; diff --git a/src/common/file_util.h b/src/common/file_util.h index 4c5ab676e..ac58607c5 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -154,7 +154,7 @@ std::string GetBundleDirectory(); #ifdef _WIN32 std::string& GetExeDirectory(); -std::string AppDataLocalDirectory(); +std::string AppDataRoamingDirectory(); #endif size_t WriteStringToFile(bool text_file, const std::string& str, const char* filename); |