From 4e3c59c6e244032f69f31f8ea1dae1029b80f2a8 Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Thu, 10 Apr 2014 18:37:31 +0000 Subject: 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 --- libpcsxcore/cdriso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpcsxcore') 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); -- cgit v1.2.3