SPU Debug: Fix crash on missing directory
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user