diff options
| author | bushing <bushing@gmail.com> | 2008-12-08 11:59:51 +0000 |
|---|---|---|
| committer | bushing <bushing@gmail.com> | 2008-12-08 11:59:51 +0000 |
| commit | 8566df386bbe93015845b77cff31660ca1ad3835 (patch) | |
| tree | b1fa7b37ef1e6492664313d12234da7c0473fc35 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | f0758fc3e234dcc1bff3e8c355019aff4ad08178 (diff) | |
oops
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1449 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 86ae07fa51..08d6836467 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -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); |
