mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-11-07 09:16:08 -10:00
Windows: Fixes forced assert
This wasn't ever wired up for Windows.
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -903,6 +903,11 @@ bool ResetToConsistentStateImpl(const ThreadCPUArea CPUArea, EXCEPTION_RECORD* E
|
||||
return true;
|
||||
}
|
||||
|
||||
if (NativeContext->Pc == reinterpret_cast<uint64_t>(&FEXCore::Assert::ForcedAssert)) {
|
||||
LogMan::Msg::DFmt("FEX: Forced assert");
|
||||
NtTerminateProcess(NtCurrentProcess(), 0x42);
|
||||
}
|
||||
|
||||
if (!IsJIT && !IsDispatcherAddress(NativeContext->Pc)) {
|
||||
LogMan::Msg::DFmt("Passing through exception");
|
||||
return false;
|
||||
|
||||
@@ -833,6 +833,11 @@ bool BTCpuResetToConsistentStateImpl(EXCEPTION_POINTERS* Ptrs) {
|
||||
}
|
||||
}
|
||||
|
||||
if (Context->Pc == reinterpret_cast<uint64_t>(&FEXCore::Assert::ForcedAssert)) {
|
||||
LogMan::Msg::DFmt("FEX: Forced assert");
|
||||
NtTerminateProcess(NtCurrentProcess(), 0x42);
|
||||
}
|
||||
|
||||
if (!Thread || !IsAddressInJit(Context->Pc)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user