Fixup for SPU Recompilers, regression after #6210

This commit is contained in:
Nekotekina 2019-07-15 19:51:58 +03:00
parent c062000288
commit 736ec4035e
1 changed files with 5 additions and 1 deletions

View File

@ -297,7 +297,11 @@ void spu_cache::add(const std::vector<u32>& func)
void spu_cache::initialize()
{
spu_runtime::g_interpreter = spu_runtime::g_gateway;
*spu_runtime::g_dispatcher = spu_runtime::tr_interpreter;
if (g_cfg.core.spu_decoder == spu_decoder_type::precise || g_cfg.core.spu_decoder == spu_decoder_type::fast)
{
*spu_runtime::g_dispatcher = spu_runtime::tr_interpreter;
}
const std::string ppu_cache = Emu.PPUCache();