From 1177e8ff1fc1e81e270f4cc559854380f695f7a0 Mon Sep 17 00:00:00 2001 From: dborth Date: Thu, 13 Nov 2008 05:43:46 +0000 Subject: [PATCH] fix loading for DVD zip files --- source/ngc/dvd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/ngc/dvd.c b/source/ngc/dvd.c index 03cbc59..1d7db2a 100644 --- a/source/ngc/dvd.c +++ b/source/ngc/dvd.c @@ -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;