mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
fix game config saving to global if empty
This commit is contained in:
parent
35c80ab9fc
commit
6ab69012e3
1 changed files with 1 additions and 10 deletions
|
@ -112,16 +112,7 @@ emu_settings::emu_settings(const std::string& path) : QObject()
|
||||||
|
|
||||||
// Incrementally load config.yml
|
// Incrementally load config.yml
|
||||||
config = fs::file(fs::get_config_dir() + path + "/config.yml", fs::read + fs::write + fs::create);
|
config = fs::file(fs::get_config_dir() + path + "/config.yml", fs::read + fs::write + fs::create);
|
||||||
|
|
||||||
if (config.size() == 0 && !path.empty()) // First time
|
|
||||||
{
|
|
||||||
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());
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
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