mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-26 09:41:11 +00:00
UICommon: Properly set user dir if ./user is a file (not a directory)
This commit is contained in:
parent
d531fe6a1d
commit
8fe7e271f3
@ -253,7 +253,7 @@ void SetUserDirectory(const std::string& custom_path)
|
|||||||
user_path += DIR_SEP;
|
user_path += DIR_SEP;
|
||||||
|
|
||||||
#else
|
#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;
|
user_path = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user