Skip to content

Commit

Permalink
The user Config directory in the dolphin emu distributed files is now…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
glennricster committed Jun 23, 2011
1 parent 693f276 commit 2d1fef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/Src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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)))
Expand Down

0 comments on commit 2d1fef2

Please sign in to comment.