From 28bc5688589e5f2d6cfa86bb22441e763de468cd Mon Sep 17 00:00:00 2001 From: notaz Date: Fri, 10 Dec 2010 17:57:35 +0200 Subject: drc: hook even to detect irq unmasking --- libpcsxcore/psxhw.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpcsxcore/psxhw.c') diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c index 9123f76..f265e19 100644 --- a/libpcsxcore/psxhw.c +++ b/libpcsxcore/psxhw.c @@ -431,6 +431,8 @@ void psxHwWrite16(u32 add, u16 value) { PSXHW_LOG("IMASK 16bit write %x\n", value); #endif psxHu16ref(0x1074) = SWAPu16(value); + if (psxHu16ref(0x1070) & value) + new_dyna_set_event(6, 1); return; case 0x1f801100: @@ -543,6 +545,8 @@ void psxHwWrite32(u32 add, u32 value) { PSXHW_LOG("IMASK 32bit write %x\n", value); #endif psxHu32ref(0x1074) = SWAPu32(value); + if (psxHu32ref(0x1070) & value) + new_dyna_set_event(6, 1); return; #ifdef PSXHW_LOG -- cgit v1.2.3