mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
use global config as default for game config again (#2845)
this was missing as a result to the previous fix of the game configs
This commit is contained in:
parent
affda37d04
commit
0f433ea882
1 changed files with 12 additions and 4 deletions
|
@ -105,14 +105,22 @@ static QStringList getOptions(cfg_location location)
|
||||||
|
|
||||||
emu_settings::emu_settings(const std::string& path) : QObject()
|
emu_settings::emu_settings(const std::string& path) : QObject()
|
||||||
{
|
{
|
||||||
currentSettings = YAML::Load(g_cfg_defaults);
|
|
||||||
|
|
||||||
// Create config path if necessary
|
// Create config path if necessary
|
||||||
fs::create_path(fs::get_config_dir() + path);
|
fs::create_path(fs::get_config_dir() + path);
|
||||||
|
|
||||||
// Incrementally load config.yml
|
// Load default config
|
||||||
config = fs::file(fs::get_config_dir() + path + "/config.yml", fs::read + fs::write + fs::create);
|
currentSettings = YAML::Load(g_cfg_defaults);
|
||||||
|
|
||||||
|
// Add global config
|
||||||
|
config = fs::file(fs::get_config_dir() + "/config.yml", fs::read + fs::write + fs::create);
|
||||||
currentSettings += YAML::Load(config.to_string());
|
currentSettings += YAML::Load(config.to_string());
|
||||||
|
|
||||||
|
// Add game config
|
||||||
|
if (!path.empty())
|
||||||
|
{
|
||||||
|
config = fs::file(fs::get_config_dir() + path + "/config.yml", fs::read + fs::write + fs::create);
|
||||||
|
currentSettings += YAML::Load(config.to_string());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
emu_settings::~emu_settings()
|
emu_settings::~emu_settings()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue