windows: move config.yml and games.yml to /config/
This commit is contained in:
+9
-1
@@ -2021,7 +2021,7 @@ std::string fs::get_executable_dir()
|
||||
return s_exe_dir;
|
||||
}
|
||||
|
||||
const std::string& fs::get_config_dir()
|
||||
const std::string& fs::get_config_dir([[maybe_unused]] bool get_config_subdirectory)
|
||||
{
|
||||
// Use magic static
|
||||
static const std::string s_dir = []
|
||||
@@ -2103,6 +2103,14 @@ const std::string& fs::get_config_dir()
|
||||
return dir;
|
||||
}();
|
||||
|
||||
#ifdef _WIN32
|
||||
if (get_config_subdirectory)
|
||||
{
|
||||
static const std::string subdir = s_dir + "config/";
|
||||
return subdir;
|
||||
}
|
||||
#endif
|
||||
|
||||
return s_dir;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user