mirror of
https://github.com/RPCS3/rpcs3
synced 2024-09-05 16:05:25 +00:00
SPU Debug: Fix crash on missing directory
This commit is contained in:
parent
0da51d25bc
commit
a6b2bf69f1
|
@ -110,7 +110,7 @@ spu_function_t spu_recompiler::compile(spu_program&& _func)
|
||||||
{
|
{
|
||||||
// Dump analyser data
|
// Dump analyser data
|
||||||
this->dump(func, log);
|
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
|
// Set logger
|
||||||
code.setLogger(&logger);
|
code.setLogger(&logger);
|
||||||
|
|
|
@ -1552,7 +1552,7 @@ public:
|
||||||
if (g_cfg.core.spu_debug && !add_loc->logged.exchange(1))
|
if (g_cfg.core.spu_debug && !add_loc->logged.exchange(1))
|
||||||
{
|
{
|
||||||
this->dump(func, log);
|
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;
|
using namespace llvm;
|
||||||
|
|
Loading…
Reference in a new issue