mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
fix loading for DVD zip files
This commit is contained in:
parent
a89d6d4d07
commit
1177e8ff1f
@ -215,8 +215,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
|
||||
memcpy(&dst[bufferOffset], buffer, bytesToRead); // copy bytes to output buffer
|
||||
}
|
||||
|
||||
//free(tmp);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@ -531,7 +529,10 @@ bool SwitchDVDFolderR(char * dir, int maxDepth)
|
||||
{
|
||||
dvddir = filelist[dirindex].offset;
|
||||
dvddirlength = filelist[dirindex].length;
|
||||
maxfiles = ParseDVDdirectory();
|
||||
selection = dirindex;
|
||||
|
||||
if(filelist[dirindex].flags) // only parse directories
|
||||
maxfiles = ParseDVDdirectory();
|
||||
|
||||
if(lastdir)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user