mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
CommonPaths: Rename DOLPHIN_DATA_DIR to NORMAL_USER_DIR
This commit is contained in:
@ -421,12 +421,12 @@ void SetUserDirectory(std::string custom_path)
|
||||
#if defined(__APPLE__) || defined(ANDROID)
|
||||
else
|
||||
{
|
||||
user_path = home_path + DOLPHIN_DATA_DIR DIR_SEP;
|
||||
user_path = home_path + NORMAL_USER_DIR DIR_SEP;
|
||||
}
|
||||
#else
|
||||
else
|
||||
{
|
||||
user_path = home_path + "." DOLPHIN_DATA_DIR DIR_SEP;
|
||||
user_path = home_path + "." NORMAL_USER_DIR DIR_SEP;
|
||||
|
||||
if (!File::Exists(user_path))
|
||||
{
|
||||
@ -434,18 +434,18 @@ void SetUserDirectory(std::string custom_path)
|
||||
std::string data_path =
|
||||
std::string(data_home && data_home[0] == '/' ? data_home :
|
||||
(home_path + ".local" DIR_SEP "share")) +
|
||||
DIR_SEP DOLPHIN_DATA_DIR DIR_SEP;
|
||||
DIR_SEP NORMAL_USER_DIR DIR_SEP;
|
||||
|
||||
const char* config_home = getenv("XDG_CONFIG_HOME");
|
||||
std::string config_path =
|
||||
std::string(config_home && config_home[0] == '/' ? config_home :
|
||||
(home_path + ".config")) +
|
||||
DIR_SEP DOLPHIN_DATA_DIR DIR_SEP;
|
||||
DIR_SEP NORMAL_USER_DIR DIR_SEP;
|
||||
|
||||
const char* cache_home = getenv("XDG_CACHE_HOME");
|
||||
std::string cache_path =
|
||||
std::string(cache_home && cache_home[0] == '/' ? cache_home : (home_path + ".cache")) +
|
||||
DIR_SEP DOLPHIN_DATA_DIR DIR_SEP;
|
||||
DIR_SEP NORMAL_USER_DIR DIR_SEP;
|
||||
|
||||
File::SetUserPath(D_USER_IDX, data_path);
|
||||
File::SetUserPath(D_CONFIG_IDX, config_path);
|
||||
|
Reference in New Issue
Block a user