From 57bffa52e68832d77a543436bf8a080bdc02aac5 Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Sun, 5 Sep 2010 01:25:57 +0000 Subject: GUI/Plugin + cdrom: GameShark v5. Xploder 9000 v4 - opening / closing lid generate CDR interrupts (fixes bad disc re-checking) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56827 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/cdrom.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'libpcsxcore') diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index 8ecb1d64..9771a60c 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -1147,3 +1147,18 @@ int cdrFreeze(gzFile f, int Mode) { return 0; } + + + + + +void LidInterrupt() +{ + // generate interrupt if none active - open or close + if( cdr.Irq == 0 || cdr.Irq == 0xff ) + { + cdr.Ctrl |= 0x80; + cdr.Stat = NoIntr; + AddIrqQueue(CdlNop, 0x800); + } +} -- cgit v1.2.3