From 8d2ed5975ed0875c125fc280c2f68e4b575db591 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Thu, 22 Jul 2010 08:09:14 +0000 Subject: [PATCH] Use the Linux install hierarchy conventions on other Unices as well. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5946 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/Main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 7bffd25ba3..f7079eb273 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -232,7 +232,7 @@ bool DolphinApp::OnInit() return false; } -#if ! defined(__APPLE__) && ! defined(__linux__) +#ifdef _WIN32 // Keep the user config dir free unless user wants to save the working dir if (!File::Exists((std::string(File::GetUserPath(D_CONFIG_IDX)) + "portable").c_str())) { @@ -307,9 +307,7 @@ bool DolphinApp::OnInit() } else if (!File::IsDirectory(AppSupportDir)) PanicAlert("~/Library/Application Support/Dolphin exists, but is not a directory"); -#endif - -#ifdef __linux__ +#else //create all necessary directories in user directory //TODO : detect the revision and upgrade where necessary File::CopyDir(SHARED_USER_DIR CONFIG_DIR DIR_SEP, File::GetUserPath(D_CONFIG_IDX));