mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-17 07:49:21 +00:00
fix some bugs
This commit is contained in:
parent
90e7ad1e94
commit
b91a638405
420 changed files with 2 additions and 6 deletions
|
@ -414,7 +414,7 @@ void SetUserDirectory(std::string custom_path)
|
|||
// -> Use GetExeDirectory()/User
|
||||
// 2. $DOLPHIN_EMU_USERPATH is set
|
||||
// -> Use $DOLPHIN_EMU_USERPATH
|
||||
// 3. ~/.dolphin-emu directory exists
|
||||
// 3. ~/.dolphin-emu directory exists, and not in flatpak
|
||||
// -> Use ~/.dolphin-emu
|
||||
// 4. Default
|
||||
// -> Use XDG basedir, see
|
||||
|
@ -447,7 +447,7 @@ void SetUserDirectory(std::string custom_path)
|
|||
{
|
||||
user_path = home_path + "." NORMAL_USER_DIR DIR_SEP;
|
||||
|
||||
if (!File::Exists(user_path))
|
||||
if (File::Exists("/.flatpak-info") || !File::Exists(user_path))
|
||||
{
|
||||
const char* data_home = getenv("XDG_DATA_HOME");
|
||||
std::string data_path =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue