notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c865887
)
cdrom: fix wrong logic with cdr.Prev
author
notaz
<notasas@gmail.com>
Thu, 7 Nov 2024 00:23:41 +0000
(
02:23
+0200)
committer
notaz
<notasas@gmail.com>
Thu, 7 Nov 2024 17:58:11 +0000
(19:58 +0200)
libpcsxcore/cdrom.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdrom.c
b/libpcsxcore/cdrom.c
index
5fcc54c
..
a8eb6d9
100644
(file)
--- a/
libpcsxcore/cdrom.c
+++ b/
libpcsxcore/cdrom.c
@@
-476,7
+476,7
@@
static int ReadTrack(const u8 *time)
return 1;
ret = cdra_readTrack(time);
- if (ret
!
= 0)
+ if (ret
=
= 0)
memcpy(cdr.Prev, time, 3);
return ret == 0;
}
@@
-1793,8
+1793,9
@@
int cdrFreeze(void *f, int Mode) {
tmpp[1] = btoi(tmpp[1]);
tmpp[2] = btoi(tmpp[2]);
}
- cdr.Prev[0]++;
- ReadTrack(tmpp);
+ cdr.Prev[0] = 0xff;
+ if (tmpp[0] != 0xff)
+ ReadTrack(tmpp);
if (cdr.Play) {
if (cdr.freeze_ver < 0x63647202)