remove dvd file limit

This commit is contained in:
dborth 2009-07-31 01:42:45 +00:00
parent 4829178f04
commit 1392b1608f

View File

@ -25,8 +25,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
@ -369,10 +367,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;
@ -520,7 +514,7 @@ ParseDVDdirectory ()
while (getentry (filecount, dvdbuffer))
{
if(strlen(browserList[filecount].filename) > 0 && filecount < MAXDVDFILES)
if(strlen(browserList[filecount].filename) > 0)
filecount++;
}