mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
SPU Debug: Fix crash on missing directory
This commit is contained in:
parent
0da51d25bc
commit
a6b2bf69f1
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
|
|||
{
|
||||
// Dump analyser data
|
||||
this->dump(func, log);
|
||||
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
||||
fs::write_file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append, log);
|
||||
|
||||
// Set logger
|
||||
code.setLogger(&logger);
|
||||
|
|
|
@ -1552,7 +1552,7 @@ public:
|
|||
if (g_cfg.core.spu_debug && !add_loc->logged.exchange(1))
|
||||
{
|
||||
this->dump(func, log);
|
||||
fs::file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append).write(log);
|
||||
fs::write_file(m_spurt->get_cache_path() + "spu.log", fs::write + fs::append, log);
|
||||
}
|
||||
|
||||
using namespace llvm;
|
||||
|
|
Loading…
Add table
Reference in a new issue