diff options
| author | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-30 14:55:43 +0000 |
|---|---|---|
| committer | SND\shalma_cp <SND\shalma_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-12-30 14:55:43 +0000 |
| commit | 40dc3ea56b4dc706dba00b33f7a61f367e3a55fe (patch) | |
| tree | 10ffc3cf198599948f231ac35f368f0f84965ba3 | |
| parent | 2cd31844fdb13127110a9bbb50033791dd69a77a (diff) | |
| download | pcsxr-40dc3ea56b4dc706dba00b33f7a61f367e3a55fe.tar.gz | |
hopkat
-cdrom- sub fake fixes (1/x)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61609 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | libpcsxcore/cdrom.c | 19 |
1 files changed, 13 insertions, 6 deletions
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: |
