summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2011-06-23 12:21:08 +0000
committerGlenn Rice <glennricster@gmail.com>2011-06-23 12:21:08 +0000
commit2d1fef29892720b72bd4c20098a46679d2f08474 (patch)
tree1cc9e92ca49123c77fa7cee7867896af793eece6
parent693f276a68d7aae5977cc6704a095a573355e75a (diff)
The user Config directory in the dolphin emu distributed files is now an empty directory (since the portable file has been removed). Hence that directory should be created and not copied. This fixes a downstream packaging issue. Downstream packages strip empty directories from the install. So users of those packages will find that their settings are not saved.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7613 8ced0084-cf51-0410-be5f-012b33b47a6e
-rw-r--r--Source/Core/DolphinWX/Src/Main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp
index 4d84ff239c..ed97ca9154 100644
--- a/Source/Core/DolphinWX/Src/Main.cpp
+++ b/Source/Core/DolphinWX/Src/Main.cpp
@@ -207,8 +207,6 @@ bool DolphinApp::OnInit()
#else
//create all necessary directories in user directory
//TODO : detect the revision and upgrade where necessary
- File::CopyDir(std::string(SHARED_USER_DIR CONFIG_DIR DIR_SEP),
- File::GetUserPath(D_CONFIG_IDX));
File::CopyDir(std::string(SHARED_USER_DIR GAMECONFIG_DIR DIR_SEP),
File::GetUserPath(D_GAMECONFIG_IDX));
File::CopyDir(std::string(SHARED_USER_DIR MAPS_DIR DIR_SEP),
@@ -220,6 +218,8 @@ bool DolphinApp::OnInit()
File::CopyDir(std::string(SHARED_USER_DIR OPENCL_DIR DIR_SEP),
File::GetUserPath(D_OPENCL_IDX));
+ if (!File::Exists(File::GetUserPath(D_CONFIG_IDX)))
+ File::CreateFullPath(File::GetUserPath(D_CONFIG_IDX));
if (!File::Exists(File::GetUserPath(D_GCUSER_IDX)))
File::CreateFullPath(File::GetUserPath(D_GCUSER_IDX));
if (!File::Exists(File::GetUserPath(D_CACHE_IDX)))