mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 21:14:21 +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
|
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,6 +532,9 @@ bool SwitchDVDFolder(char * dir, int maxDepth)
|
|||||||
{
|
{
|
||||||
dvddir = filelist[dirindex].offset;
|
dvddir = filelist[dirindex].offset;
|
||||||
dvddirlength = filelist[dirindex].length;
|
dvddirlength = filelist[dirindex].length;
|
||||||
|
selection = dirindex;
|
||||||
|
|
||||||
|
if(filelist[dirindex].flags) // only parse directories
|
||||||
maxfiles = ParseDVDdirectory();
|
maxfiles = ParseDVDdirectory();
|
||||||
|
|
||||||
if(lastdir)
|
if(lastdir)
|
||||||
|
Loading…
Reference in New Issue
Block a user