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 184f334158d79faacf43d16d97b9f59297d2b895
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 184f334

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