From 8fe7e271f319637a795d667e070f2724389e4447 Mon Sep 17 00:00:00 2001 From: Mikaela Szekely Date: Fri, 3 May 2019 23:26:05 -0600 Subject: [PATCH] UICommon: Properly set user dir if ./user is a file (not a directory) --- Source/Core/UICommon/UICommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }