mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-28 20:21:49 +01:00
fix loading for DVD zip files
This commit is contained in:
parent
0de468893f
commit
0c0199f2c2
@ -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
|
||||
memcpy(&dst[bufferOffset], buffer, bytesToRead); // copy bytes to output buffer
|
||||
}
|
||||
|
||||
//free(tmp);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@ -534,7 +532,10 @@ bool SwitchDVDFolder(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