gsdx sw: catch xbyak exception

This commit is contained in:
Gregory Hainaut 2016-11-20 12:58:07 +01:00
parent 0fd5346860
commit 681c09f25c
2 changed files with 10 additions and 2 deletions

View File

@ -114,7 +114,11 @@ GSDrawScanlineCodeGenerator::GSDrawScanlineCodeGenerator(void* param, uint64 key
if(m_sel.breakpoint) if(m_sel.breakpoint)
int3(); int3();
Generate(); try {
Generate();
} catch (std::exception& e) {
fprintf(stderr, "ERR:GSDrawScanlineCodeGenerator %s\n", e.what());
}
} }
#if _M_SSE >= 0x501 #if _M_SSE >= 0x501

View File

@ -75,7 +75,11 @@ GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(void* param, uint64 key, void
m_en.t = m_sel.fb && m_sel.tfx != TFX_NONE ? 1 : 0; m_en.t = m_sel.fb && m_sel.tfx != TFX_NONE ? 1 : 0;
m_en.c = m_sel.fb && !(m_sel.tfx == TFX_DECAL && m_sel.tcc) ? 1 : 0; m_en.c = m_sel.fb && !(m_sel.tfx == TFX_DECAL && m_sel.tcc) ? 1 : 0;
Generate(); try {
Generate();
} catch (std::exception& e) {
fprintf(stderr, "ERR:GSSetupPrimCodeGenerator %s\n", e.what());
}
} }
#if _M_SSE >= 0x501 #if _M_SSE >= 0x501