mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
fix some warnings
This commit is contained in:
parent
b1c48e66c9
commit
59c58aa3cf
72 changed files with 263 additions and 203 deletions
|
|
@ -32,11 +32,11 @@ void cfg_ipc::save() const
|
|||
}
|
||||
#endif
|
||||
|
||||
fs::pending_file cfg_file(cfg_ipc::get_path());
|
||||
const std::string path = cfg_ipc::get_path();
|
||||
|
||||
if (!cfg_file.file || (cfg_file.file.write(to_string()), !cfg_file.commit()))
|
||||
if (!cfg::node::save(path))
|
||||
{
|
||||
IPC.error("Could not save config: %s (error=%s)", cfg_ipc::get_path(), fs::g_tls_error);
|
||||
IPC.error("Could not save config: %s (error=%s)", path, fs::g_tls_error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue