mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01:00
oops
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1449 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f0758fc3e2
commit
8566df386b
@ -302,12 +302,12 @@ std::string GetUserDirectory()
|
||||
return std::string("");
|
||||
#else
|
||||
char *homedir = getenv("HOME");
|
||||
if (!dir)
|
||||
if (!homedir)
|
||||
return std::string("");
|
||||
#ifdef __APPLE__
|
||||
snprintf(path, sizeof(path), "%s/Library/Application Support/Dolphin");
|
||||
snprintf(path, sizeof(path), "%s/Library/Application Support/Dolphin", homedir);
|
||||
#else
|
||||
snprintf(path, sizeof(path), "%s/.dolphin"); // XXX changeme as appropriate
|
||||
snprintf(path, sizeof(path), "%s/.dolphin", homedir); // XXX changeme as appropriate
|
||||
#endif
|
||||
#endif
|
||||
return std::string(path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user