mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
VFS: Fix paths override
This commit is contained in:
parent
dcb2e8cd9e
commit
3cbdc3a198
@ -262,11 +262,9 @@ bool emu_settings::ValidateSettings(bool cleanup)
|
|||||||
return is_clean;
|
return is_clean;
|
||||||
}
|
}
|
||||||
|
|
||||||
void emu_settings::SaveSettings() const
|
void emu_settings::SaveSettings()
|
||||||
{
|
{
|
||||||
YAML::Emitter out;
|
YAML::Emitter out;
|
||||||
emit_data(out, m_current_settings);
|
|
||||||
|
|
||||||
std::string config_name;
|
std::string config_name;
|
||||||
|
|
||||||
if (m_title_id.empty())
|
if (m_title_id.empty())
|
||||||
@ -275,9 +273,13 @@ void emu_settings::SaveSettings() const
|
|||||||
}
|
}
|
||||||
else
|
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);
|
config_name = rpcs3::utils::get_custom_config_path(m_title_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit_data(out, m_current_settings);
|
||||||
|
|
||||||
// Save config atomically
|
// Save config atomically
|
||||||
fs::pending_file temp(config_name);
|
fs::pending_file temp(config_name);
|
||||||
temp.file.write(out.c_str(), out.size());
|
temp.file.write(out.c_str(), out.size());
|
||||||
|
@ -94,7 +94,7 @@ public:
|
|||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
/** Writes the unsaved settings to file. Used in settings dialog on accept.*/
|
/** Writes the unsaved settings to file. Used in settings dialog on accept.*/
|
||||||
void SaveSettings() const;
|
void SaveSettings();
|
||||||
private:
|
private:
|
||||||
YAML::Node m_default_settings; // The default settings as a YAML node.
|
YAML::Node m_default_settings; // The default settings as a YAML node.
|
||||||
YAML::Node m_current_settings; // The current settings as a YAML node.
|
YAML::Node m_current_settings; // The current settings as a YAML node.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user