mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
Minor fs::file usage fixes
Do not crash on file creation failure. Make some config writes atomic.
This commit is contained in:
parent
4c9296c07f
commit
0b22423ab8
9 changed files with 21 additions and 9 deletions
|
|
@ -5292,7 +5292,7 @@ static void ppu_initialize2(jit_compiler& jit, const ppu_module& module_part, co
|
|||
if (g_cfg.core.llvm_logs)
|
||||
{
|
||||
out << *_module; // print IR
|
||||
fs::file(cache_path + obj_name + ".log", fs::rewrite).write(out.str());
|
||||
fs::write_file(cache_path + obj_name + ".log", fs::rewrite, out.str());
|
||||
result.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue