From cb3022377da55586ac52c49cc9713f3cb54c50e8 Mon Sep 17 00:00:00 2001 From: dborth Date: Fri, 31 Jul 2009 01:42:59 +0000 Subject: [PATCH] remove dvd file limit --- source/ngc/dvd.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/ngc/dvd.cpp b/source/ngc/dvd.cpp index 195f9f4..54030cb 100644 --- a/source/ngc/dvd.cpp +++ b/source/ngc/dvd.cpp @@ -28,8 +28,6 @@ #include "filebrowser.h" #include "fileop.h" -#define MAXDVDFILES 2000 - static int diroffset = 0; static u64 dvddir = 0; // offset of currently selected file or folder static int dvddirlength = 0; // length of currently selected file or folder @@ -372,10 +370,6 @@ getentry (int entrycount, unsigned char dvdbuffer[]) int j; u32 offset32; - /* Basic checks */ - if (entrycount >= MAXDVDFILES) - return 0; - if (diroffset >= 2048 || diroffset < 0) return 0; @@ -523,7 +517,7 @@ ParseDVDdirectory () while (getentry (filecount, dvdbuffer)) { - if(strlen(browserList[filecount].filename) > 0 && filecount < MAXDVDFILES) + if(strlen(browserList[filecount].filename) > 0) filecount++; }