fix loading for DVD zip files

This commit is contained in:
dborth 2008-11-13 05:44:21 +00:00
parent 0de468893f
commit 0c0199f2c2

View File

@ -220,8 +220,6 @@ int dvd_safe_read(void *dst_v, u32 len, u64 offset)
ret |= dvd_buffered_read(buffer, DVD_MAX_READ_LENGTH, currentOffset); // read 32 byte from the dvd ret |= dvd_buffered_read(buffer, DVD_MAX_READ_LENGTH, currentOffset); // read 32 byte from the dvd
memcpy(&dst[bufferOffset], buffer, bytesToRead); // copy bytes to output buffer memcpy(&dst[bufferOffset], buffer, bytesToRead); // copy bytes to output buffer
} }
//free(tmp);
return ret; return ret;
} }
} }
@ -534,7 +532,10 @@ bool SwitchDVDFolder(char * dir, int maxDepth)
{ {
dvddir = filelist[dirindex].offset; dvddir = filelist[dirindex].offset;
dvddirlength = filelist[dirindex].length; dvddirlength = filelist[dirindex].length;
maxfiles = ParseDVDdirectory(); selection = dirindex;
if(filelist[dirindex].flags) // only parse directories
maxfiles = ParseDVDdirectory();
if(lastdir) if(lastdir)
return true; return true;