SPU Debug: Fix crash on missing directory

This commit is contained in:
Elad Ashkenazi 2024-05-27 11:53:28 +03:00
parent 0da51d25bc
commit a6b2bf69f1
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;