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:
7e6d030
)
cdriso: unbreak cdda for chd
author
notaz
<notasas@gmail.com>
Sat, 12 Nov 2022 15:57:31 +0000
(17:57 +0200)
committer
notaz
<notasas@gmail.com>
Sat, 12 Nov 2022 15:58:20 +0000
(17:58 +0200)
notaz/pcsx_rearmed#272
libpcsxcore/cdriso.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdriso.c
b/libpcsxcore/cdriso.c
index
3189579
..
f47fcfd
100644
(file)
--- a/
libpcsxcore/cdriso.c
+++ b/
libpcsxcore/cdriso.c
@@
-110,7
+110,7
@@
struct trackinfo {
char start[3]; // MSF-format
char length[3]; // MSF-format
FILE *handle; // for multi-track images CDDA
char start[3]; // MSF-format
char length[3]; // MSF-format
FILE *handle; // for multi-track images CDDA
- unsigned int start_offset; // byte offset from start of above file
+ unsigned int start_offset; // byte offset from start of above file
(chd: sector offset)
};
#define MAXTRACKS 100 /* How many tracks can a CD hold? */
};
#define MAXTRACKS 100 /* How many tracks can a CD hold? */
@@
-1229,7
+1229,7
@@
static int cdread_chd(FILE *f, unsigned int base, void *dest, int sector)
{
int hunk;
{
int hunk;
-
assert(base == 0)
;
+
sector += base
;
hunk = sector / chd_img->sectors_per_hunk;
chd_img->sector_in_hunk = sector % chd_img->sectors_per_hunk;
hunk = sector / chd_img->sectors_per_hunk;
chd_img->sector_in_hunk = sector % chd_img->sectors_per_hunk;