diff options
| author | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-09-23 14:09:25 +0000 |
|---|---|---|
| committer | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2013-09-23 14:09:25 +0000 |
| commit | 547572eb506c0770d085599473c61dc0020e3032 (patch) | |
| tree | c3d8df2a9735c6b281d536ebb1210c09d583c5ee /libpcsxcore/cdriso.c | |
| parent | e20c6732095c39d420b34123e1938177d8110938 (diff) | |
ECM file support: fixed seeking errors that some games were causing.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87272 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/cdriso.c')
| -rwxr-xr-x | libpcsxcore/cdriso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index 6d066f38..d97045de 100755 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1361,7 +1361,7 @@ static int cdread_ecm_decode(FILE *f, unsigned int base, void *dest, int sector) }*/ //printf("SeekSector %i %i %i %i\n", sector, pos->sector, prevsector, base); - if (sector <= len_ecm_savetable) { + if (sector > 2*75 && sector <= len_ecm_savetable) { // actual data starts after 150 "pregap", ignore LUT pos = &(ecm_savetable[sector-0]); // get sector from LUT which points to wanted sector or to beginning // if suitable sector was not found from LUT use last sector if less than wanted sector if (pos->filepos <= ECM_HEADER_SIZE && sector > prevsector) pos=&(ecm_savetable[prevsector]); |
