From a0458bbf986a7ca0a1d07d406c68ce160504ecfa Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Thu, 5 Mar 2020 18:17:29 +0800 Subject: [PATCH] iNes: Prevent invalidating rom when size does not match header --- src/ines.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ines.c b/src/ines.c index 2f2ceca..396d180 100644 --- a/src/ines.c +++ b/src/ines.c @@ -853,7 +853,6 @@ int iNESLoad(const char *name, FCEUFILE *fp) { romSize = (prgRom * 0x4000) + (chrRom * 0x2000); if (romSize > filesize) { FCEU_PrintError(" File length is too short to contain all data reported from header by %llu\n", romSize - filesize); - return 0; } else if (romSize < filesize) FCEU_PrintError(" File contains %llu bytes of unused data\n", filesize - romSize);