mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-12-25 18:51:50 +01:00
remove dvd file limit
This commit is contained in:
parent
f9514962ff
commit
98e8be7ce9
@ -27,8 +27,6 @@
|
|||||||
#include "filebrowser.h"
|
#include "filebrowser.h"
|
||||||
#include "fileop.h"
|
#include "fileop.h"
|
||||||
|
|
||||||
#define MAXDVDFILES 2000
|
|
||||||
|
|
||||||
static int diroffset = 0;
|
static int diroffset = 0;
|
||||||
static u64 dvddir = 0; // offset of currently selected file or folder
|
static u64 dvddir = 0; // offset of currently selected file or folder
|
||||||
static int dvddirlength = 0; // length 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;
|
int j;
|
||||||
u32 offset32;
|
u32 offset32;
|
||||||
|
|
||||||
/* Basic checks */
|
|
||||||
if (entrycount >= MAXDVDFILES)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
if (diroffset >= 2048 || diroffset < 0)
|
if (diroffset >= 2048 || diroffset < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -524,7 +518,7 @@ ParseDVDdirectory ()
|
|||||||
|
|
||||||
while (getentry (filecount, dvdbuffer))
|
while (getentry (filecount, dvdbuffer))
|
||||||
{
|
{
|
||||||
if(strlen(browserList[filecount].filename) > 0 && filecount < MAXDVDFILES)
|
if(strlen(browserList[filecount].filename) > 0)
|
||||||
filecount++;
|
filecount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user