From 40dc3ea56b4dc706dba00b33f7a61f367e3a55fe Mon Sep 17 00:00:00 2001 From: "SND\\shalma_cp" Date: Thu, 30 Dec 2010 14:55:43 +0000 Subject: hopkat -cdrom- sub fake fixes (1/x) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61609 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/cdrom.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/cdrom.c b/libpcsxcore/cdrom.c index d33be570..dfec11c3 100644 --- a/libpcsxcore/cdrom.c +++ b/libpcsxcore/cdrom.c @@ -707,7 +707,7 @@ void cdrRepplayInterrupt() // track # / index # (assume no pregaps) - cdr.Result[1] = cdr.CurTrack; + cdr.Result[1] = itob( cdr.CurTrack ); cdr.Result[2] = 1; if( report_time == 0 ) { @@ -1086,7 +1086,7 @@ void cdrInterrupt() { // assume no pregaps - cdr.Result[0] = cdr.CurTrack; + cdr.Result[0] = itob( cdr.CurTrack ); cdr.Result[1] = 1; @@ -1663,6 +1663,11 @@ void cdrWrite1(unsigned char rt) { memcpy( cdr.SetSectorPlay, cdr.SetSector, 4 ); + // Tomb Raider 2 - new game + //Set_Track(); + Find_CurTrack(); + + /* if ((cdr.SetSector[0] | cdr.SetSector[1] | cdr.SetSector[2]) == 0) { *(u32 *)cdr.SetSector = *(u32 *)cdr.SetSectorSeek; @@ -1853,12 +1858,14 @@ void cdrWrite1(unsigned char rt) { case CdlGetlocP: cdr.Ctrl |= 0x80; - cdr.Stat = NoIntr; - AddIrqQueue(cdr.Cmd, 0x800); - + cdr.Stat = NoIntr; + // GameShark CDX / Lite Player: pretty narrow time window // - doesn't always work due to time inprecision - //AddIrqQueue(cdr.Cmd, 0x28); + //AddIrqQueue(cdr.Cmd, 0x28); + + // Tomb Raider 2 - cdda + AddIrqQueue(cdr.Cmd, 0x40); break; case CdlGetTN: -- cgit v1.2.3