mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 03:38:38 +12:00
Improve error logging
This commit is contained in:
parent
36a55660bf
commit
9b7eaf5117
11 changed files with 16 additions and 13 deletions
|
@ -284,7 +284,10 @@ void emu_settings::SaveSettings()
|
|||
// Save config atomically
|
||||
fs::pending_file temp(config_name);
|
||||
temp.file.write(out.c_str(), out.size());
|
||||
temp.commit();
|
||||
if (!temp.commit())
|
||||
{
|
||||
cfg_log.error("Could not save config to %s (error=%s)", config_name, fs::g_tls_error);
|
||||
}
|
||||
|
||||
// Check if the running config/title is the same as the edited config/title.
|
||||
if (config_name == g_cfg.name || m_title_id == Emu.GetTitleID())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue