Skip to content
Permalink
Browse files

UICommon: Properly set user dir if ./user is a file (not a directory)

  • Loading branch information...
Qyriad committed May 4, 2019
1 parent d531fe6 commit 8fe7e271f319637a795d667e070f2724389e4447
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 8fe7e27

Please sign in to comment.
You can’t perform that action at this time.