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

This commit is contained in:
Mikaela Szekely 2019-05-03 23:26:05 -06:00
parent d531fe6a1d
commit 8fe7e271f3
No known key found for this signature in database
GPG Key ID: AA45D59374537FB5

View File

@ -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;
}