notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cdrom: moar hacks
[pcsx_rearmed.git]
/
libpcsxcore
/
cdrom.c
diff --git
a/libpcsxcore/cdrom.c
b/libpcsxcore/cdrom.c
index
5f4ce60
..
c092f2c
100644
(file)
--- a/
libpcsxcore/cdrom.c
+++ b/
libpcsxcore/cdrom.c
@@
-1318,7
+1318,7
@@
static void cdrReadInterrupt(void)
}
memcpy(cdr.LocL, buf, 8);
}
memcpy(cdr.LocL, buf, 8);
- if (!cdr.Irq1Pending)
+ if (!cdr.
Stat && !cdr.
Irq1Pending)
cdrUpdateTransferBuf(buf);
if ((!cdr.Muted) && (cdr.Mode & MODE_STRSND) && (!Config.Xa) && (cdr.FirstSector != -1)) { // CD-XA
cdrUpdateTransferBuf(buf);
if ((!cdr.Muted) && (cdr.Mode & MODE_STRSND) && (!Config.Xa) && (cdr.FirstSector != -1)) { // CD-XA
@@
-1515,8
+1515,11
@@
void cdrWrite3(unsigned char rt) {
// note: Croc, Shadow Tower (more) vs Discworld Noir (<993)
if (!pending && (cdr.CmdInProgress || cdr.Irq1Pending))
{
// note: Croc, Shadow Tower (more) vs Discworld Noir (<993)
if (!pending && (cdr.CmdInProgress || cdr.Irq1Pending))
{
- s32 c = 2048 - (psxRegs.cycle - nextCycle);
- c = MAX_VALUE(c, 512);
+ s32 c = 2048;
+ if (cdr.CmdInProgress) {
+ c = 2048 - (psxRegs.cycle - nextCycle);
+ c = MAX_VALUE(c, 512);
+ }
CDR_INT(c);
}
}
CDR_INT(c);
}
}