Skip to content

Commit

Permalink
GSdx:SW: Don't catch xbyak exceptions
Browse files Browse the repository at this point in the history
Since they prematurely stop codegen, catching them just causes a crash later
  • Loading branch information
TellowKrinkle committed Mar 6, 2021
1 parent 292739a commit 87a6c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions plugins/GSdx/Renderers/SW/GSDrawScanlineCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@ GSDrawScanlineCodeGenerator::GSDrawScanlineCodeGenerator(void* param, uint64 key
if(m_sel.breakpoint)
db(0xCC);

try {
Generate();
} catch (std::exception& e) {
fprintf(stderr, "ERR:GSDrawScanlineCodeGenerator %s\n", e.what());
}
Generate();
}
6 changes: 1 addition & 5 deletions plugins/GSdx/Renderers/SW/GSSetupPrimCodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@ GSSetupPrimCodeGenerator::GSSetupPrimCodeGenerator(void* param, uint64 key, void
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;

try {
GSSetupPrimCodeGenerator2(this, CPUInfo(m_cpu), param, key).Generate();
} catch (std::exception& e) {
fprintf(stderr, "ERR:GSSetupPrimCodeGenerator %s\n", e.what());
}
GSSetupPrimCodeGenerator2(this, CPUInfo(m_cpu), param, key).Generate();
}

0 comments on commit 87a6c76

Please sign in to comment.