Don't print stupid warnings if input rom is headered and output isn't, and both are otherwise same size

This commit is contained in:
Sir Walrus
2023-03-15 10:37:35 +01:00
parent a317902c6f
commit 582ca7b04c

View File

@@ -1003,11 +1003,11 @@ struct errorinfo CreatePatchToMem(LPCWSTR inromname, LPCWSTR outromname, enum pa
if (i==1) delete roms[0];
return error(el_broken, "Couldn't read this ROM.");
}
lens[i] = roms[i]->len();
if (shouldRemoveHeader(romname, lens[i]) && (patchtype==ty_bps || patchtype==ty_bps_linear || patchtype==ty_bps_moremem))
if (shouldRemoveHeader(romname, roms[i]->len()) && (patchtype==ty_bps || patchtype==ty_bps_linear || patchtype==ty_bps_moremem))
{
roms[i] = new fileheader(roms[i]);
}
lens[i] = roms[i]->len();
}
}