git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1449 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
bushing 2008-12-08 11:59:51 +00:00
parent f0758fc3e2
commit 8566df386b

View File

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