From 582ca7b04cfbc14f90514857124deccff1f0a54a Mon Sep 17 00:00:00 2001 From: Sir Walrus Date: Wed, 15 Mar 2023 10:37:35 +0100 Subject: [PATCH] Don't print stupid warnings if input rom is headered and output isn't, and both are otherwise same size --- flips.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flips.cpp b/flips.cpp index 294edfa..7a31420 100644 --- a/flips.cpp +++ b/flips.cpp @@ -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(); } }