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
This commit is contained in:
parent
09b5dfbd53
commit
8d2ed5975e
|
@ -232,7 +232,7 @@ bool DolphinApp::OnInit()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ! defined(__APPLE__) && ! defined(__linux__)
|
#ifdef _WIN32
|
||||||
// Keep the user config dir free unless user wants to save the working dir
|
// 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()))
|
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))
|
else if (!File::IsDirectory(AppSupportDir))
|
||||||
PanicAlert("~/Library/Application Support/Dolphin exists, but is not a directory");
|
PanicAlert("~/Library/Application Support/Dolphin exists, but is not a directory");
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#ifdef __linux__
|
|
||||||
//create all necessary directories in user directory
|
//create all necessary directories in user directory
|
||||||
//TODO : detect the revision and upgrade where necessary
|
//TODO : detect the revision and upgrade where necessary
|
||||||
File::CopyDir(SHARED_USER_DIR CONFIG_DIR DIR_SEP, File::GetUserPath(D_CONFIG_IDX));
|
File::CopyDir(SHARED_USER_DIR CONFIG_DIR DIR_SEP, File::GetUserPath(D_CONFIG_IDX));
|
||||||
|
|
Loading…
Reference in New Issue