Yet another iOS buildfix attempt

This commit is contained in:
Henrik Rydgård 2020-07-14 10:34:40 +02:00
parent f6cc45a96a
commit 893aa29191

View file

@ -489,6 +489,10 @@ void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength) {
CBreakPoints::ExecMemCheck(_Address, true, _iLength, currentMIPS->pc);
}
// We do not support crash catching on UWP and iOS.
// On iOS, the sigcontext struct seems to be missing??
#if !PPSSPP_PLATFORM(IOS) && !PPSSPP_PLATFORM(UWP)
bool HandleFault(uintptr_t hostAddress, void *ctx) {
SContext *context = (SContext *)ctx;
const uint8_t *codePtr = (uint8_t *)(context->CTX_PC);
@ -575,4 +579,13 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
return true;
}
#else
bool HandleFault(uintptr_t hostAddress, void *ctx) {
ERROR_LOG(MEMMAP, "Exception handling not supported");
return false;
}
#endif
} // namespace