mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
VFS: Fix paths override
This commit is contained in:
parent
dcb2e8cd9e
commit
3cbdc3a198
2 changed files with 6 additions and 4 deletions
|
@ -262,11 +262,9 @@ bool emu_settings::ValidateSettings(bool cleanup)
|
|||
return is_clean;
|
||||
}
|
||||
|
||||
void emu_settings::SaveSettings() const
|
||||
void emu_settings::SaveSettings()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
emit_data(out, m_current_settings);
|
||||
|
||||
std::string config_name;
|
||||
|
||||
if (m_title_id.empty())
|
||||
|
@ -275,9 +273,13 @@ void emu_settings::SaveSettings() const
|
|||
}
|
||||
else
|
||||
{
|
||||
// VFS paths are being controlled mainly by the main config (needs manual modification for customization of custom configs)
|
||||
m_current_settings.remove("VFS");
|
||||
config_name = rpcs3::utils::get_custom_config_path(m_title_id);
|
||||
}
|
||||
|
||||
emit_data(out, m_current_settings);
|
||||
|
||||
// Save config atomically
|
||||
fs::pending_file temp(config_name);
|
||||
temp.file.write(out.c_str(), out.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue