mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue