summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMikaela Szekely <qyriad@gmail.com>2019-05-03 23:26:05 -0600
committerMikaela Szekely <qyriad@gmail.com>2019-05-03 23:30:50 -0600
commit8fe7e271f319637a795d667e070f2724389e4447 (patch)
treecc64ab03cbd5e22f3ad5b2b9e259b79d8a8044cd /Source/Core
parentd531fe6a1d4c141820e295a18537079f67a063e3 (diff)
UICommon: Properly set user dir if ./user is a file (not a directory)
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/UICommon/UICommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/UICommon/UICommon.cpp b/Source/Core/UICommon/UICommon.cpp
index d8a85d5c68..2d5e449ecd 100644
--- a/Source/Core/UICommon/UICommon.cpp
+++ b/Source/Core/UICommon/UICommon.cpp
@@ -253,7 +253,7 @@ void SetUserDirectory(const std::string& custom_path)
user_path += DIR_SEP;
#else
- if (File::Exists(ROOT_DIR DIR_SEP USERDATA_DIR))
+ if (File::IsDirectory(ROOT_DIR DIR_SEP USERDATA_DIR))
{
user_path = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP;
}