Allow longer file names (27 characters)

This commit is contained in:
Lephenixnoir 2021-08-31 19:54:39 +02:00
parent cc1094394e
commit 039a5c0b71
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 5 additions and 5 deletions

View File

@ -348,7 +348,7 @@ typedef struct
/* Find WAD files in the filesystem. */
int FindWADs(WADFileInfo *files, int max)
{
uint16_t path[16];
uint16_t path[32];
Bfile_FileInfo info;
int sd, rc, total=0;
@ -357,8 +357,8 @@ int FindWADs(WADFileInfo *files, int max)
while(rc != -16 && total < max)
{
memcpy(files[total].path, u"\\\\fls0\\", 14);
memcpy(files[total].path+7, path, 16*2);
Bfile_NameToStr_ncpy(files[total].name, path, 16);
memcpy(files[total].path+7, path, 32*2);
Bfile_NameToStr_ncpy(files[total].name, path, 32);
files[total].size = info.fsize;
total++;

View File

@ -14,8 +14,8 @@ extern uint16_t *VRAM;
/* Description of a WAD file selectable by user. */
typedef struct
{
char name[16];
uint16_t path[23];
char name[32];
uint16_t path[7+32];
int size;
} WADFileInfo;