From 8566df386bbe93015845b77cff31660ca1ad3835 Mon Sep 17 00:00:00 2001 From: bushing Date: Mon, 8 Dec 2008 11:59:51 +0000 Subject: [PATCH] oops git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1449 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/FileUtil.cpp | 6 +++--- 1 file 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);