mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Fix atomicity of savedata/trophy data writes
This commit is contained in:
parent
932f31e37b
commit
d4af8dd89a
3 changed files with 10 additions and 5 deletions
|
|
@ -47,7 +47,7 @@ bool TRPLoader::Install(const std::string& dest, bool show)
|
|||
}
|
||||
|
||||
// Create the file in the temporary directory
|
||||
success = fs::write_file(temp + '/' + vfs::escape(entry.name), fs::create + fs::excl, buffer);
|
||||
success = fs::write_file<true>(temp + '/' + vfs::escape(entry.name), fs::create + fs::excl, buffer);
|
||||
if (!success)
|
||||
{
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue