mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Workaround for dumping NTR-AKRJ-JPN
... this cart has a broken header, thus trimming is not possible.
This commit is contained in:
parent
28c2f7b06e
commit
63120f8a79
@ -35,7 +35,7 @@ bool ReadVCartDir(VirtualFile* vfile, VirtualDir* vdir) {
|
||||
vfile->size = cdata->cart_size;
|
||||
if (vfile->size == FAT_LIMIT) vfile->size--;
|
||||
return true;
|
||||
} else if ((vdir->index == 1) && (cdata->data_size < FAT_LIMIT)) { // trimmed rom
|
||||
} else if ((vdir->index == 1) && (cdata->data_size < FAT_LIMIT) && cdata->data_size) { // trimmed rom
|
||||
snprintf(vfile->name, 32, "%s.trim.%s", name, ext);
|
||||
vfile->size = cdata->data_size;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user