diff options
| author | rog <rdragoon@optonline.net> | 2012-12-26 19:55:45 -0500 |
|---|---|---|
| committer | rog <rdragoon@optonline.net> | 2012-12-26 19:55:45 -0500 |
| commit | 94116bf89c917309b7e7b2a2b46bf2f43f3219db (patch) | |
| tree | 76712c000eb3890ffab9508d7a4a620123877a3d /Source/Core/Common | |
| parent | db5f4c8c20b36b2fdc6257104096e021b56d6145 (diff) | |
Always use the right user dir on windows.
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 77aac45418..77290528a6 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -649,8 +649,7 @@ std::string &GetUserPath(const unsigned int DirIDX, const std::string &newPath) if (paths[D_USER_IDX].empty()) { #ifdef _WIN32 - // TODO: use GetExeDirectory() here instead of ROOT_DIR so that if the cwd is changed we still have the correct paths? - paths[D_USER_IDX] = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP; + paths[D_USER_IDX] = GetExeDirectory() + DIR_SEP USERDATA_DIR DIR_SEP; #else if (File::Exists(ROOT_DIR DIR_SEP USERDATA_DIR)) paths[D_USER_IDX] = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP; |
