diff options
author | notaz | 2010-12-07 00:06:21 +0200 |
---|---|---|
committer | notaz | 2010-12-14 15:24:50 +0200 |
commit | ae602c19f527fbc1f44cdb744cf824d04b8eceb1 (patch) | |
tree | 000d4051fb09ea2d8f4c35344dabbd40cc54213d /libpcsxcore/cdrom.c | |
parent | 5067f3414032416f7112cd771ebe0a7aaf9eb7bf (diff) | |
download | pcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.tar.gz pcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.tar.bz2 pcsx_rearmed-ae602c19f527fbc1f44cdb744cf824d04b8eceb1.zip |
improve event handling (still has problems though)
Diffstat (limited to 'libpcsxcore/cdrom.c')
-rw-r--r-- | libpcsxcore/cdrom.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 92e4b7f..0211865 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -94,12 +94,16 @@ static struct SubQ *subq; #define CDR_INT(eCycle) { \ psxRegs.interrupt |= 0x4; \ psxRegs.intCycle[2 + 1] = eCycle; \ - psxRegs.intCycle[2] = psxRegs.cycle; } + psxRegs.intCycle[2] = psxRegs.cycle; \ + new_dyna_set_event(0, psxRegs.cycle + eCycle); \ +} #define CDREAD_INT(eCycle) { \ psxRegs.interrupt |= 0x40000; \ psxRegs.intCycle[2 + 16 + 1] = eCycle; \ - psxRegs.intCycle[2 + 16] = psxRegs.cycle; } + psxRegs.intCycle[2 + 16] = psxRegs.cycle; \ + new_dyna_set_event(2, psxRegs.cycle + eCycle); \ +} #define StartReading(type, eCycle) { \ cdr.Reading = type; \ |