Don't show the JEDECID file on carts that have none

This commit is contained in:
d0k3 2019-10-17 19:51:05 +02:00
parent 9e72c098b9
commit ae583300e6

View File

@ -62,7 +62,7 @@ bool ReadVCartDir(VirtualFile* vfile, VirtualDir* vdir) {
vfile->size = cdata->save_size; vfile->size = cdata->save_size;
vfile->flags = VFLAG_SAVEGAME; vfile->flags = VFLAG_SAVEGAME;
return true; return true;
} else if (vdir->index == 7) { // JEDEC id and status register } else if ((vdir->index == 7) && cdata->save_type.chip) { // JEDEC id and status register
strcpy(vfile->name, "jedecid_and_sreg.bin"); strcpy(vfile->name, "jedecid_and_sreg.bin");
vfile->size = JEDECID_AND_SREG_SIZE; vfile->size = JEDECID_AND_SREG_SIZE;
vfile->flags |= VFLAG_JEDECID_AND_SRFG; vfile->flags |= VFLAG_JEDECID_AND_SRFG;