Skip to content
Permalink
Browse files
Merge pull request #8074 from Qyriad/fixes/set-user-dir-properly
UICommon: Properly set user dir if ./user is a file (not a directory)
  • Loading branch information
stenzek committed May 4, 2019
2 parents 1153cc1 + 8fe7e27 commit 184f334
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 184f334

Please sign in to comment.