From 2d1fef29892720b72bd4c20098a46679d2f08474 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 23 Jun 2011 12:21:08 +0000 Subject: [PATCH] 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 --- Source/Core/DolphinWX/Src/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 4d84ff239c36..ed97ca915435 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)))