summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-04-10 18:37:31 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-04-10 18:37:31 +0000
commit4e3c59c6e244032f69f31f8ea1dae1029b80f2a8 (patch)
treee38f9b448b14a07e5a0815265a1140c23390105a
parent50f53e3dcf7308c9ca361692843bf0cd6dbdb606 (diff)
downloadpcsxr-4e3c59c6e244032f69f31f8ea1dae1029b80f2a8.tar.gz
ecm lut build fix - now games like Alundra should work also.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89873 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rwxr-xr-xlibpcsxcore/cdriso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index dcb0247e..c29f5b59 100755
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -1467,7 +1467,7 @@ static int cdread_ecm_decode(FILE *f, unsigned int base, void *dest, int sector)
sectorcount=((writebytecount/CD_FRAMESIZE_RAW) - 0);
num -= b;
}
- if (sectorcount > 0 && ecm_savetable[sectorcount].filepos <= ECM_HEADER_SIZE ) {
+ if (type && sectorcount > 0 && ecm_savetable[sectorcount].filepos <= ECM_HEADER_SIZE ) {
ecm_savetable[sectorcount].filepos = ftell(f)/*-base*/;
ecm_savetable[sectorcount].sector = sectorcount;
//printf("Marked %i at pos %i\n", ecm_savetable[sectorcount].sector, ecm_savetable[sectorcount].filepos);