Bug fix for VROM size needing to be a power of 2. Fixes issue #455

This commit is contained in:
mjbudd77 2022-01-31 21:23:02 -05:00
parent 73f8b70fdc
commit 93f3260a98
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ int iNESLoad(const char *name, FCEUFILE *fp, int OverwriteVidMode) {
VROM_size = uppow2(head.VROM_size | (iNES2?((head.Upper_ROM_VROM_size & 0xF0)<<4):0));
if (!iNES2) {
VROM_size = head.VROM_size;
VROM_size = uppow2(head.VROM_size);
}
else {
if ((head.Upper_ROM_VROM_size & 0xF0) != 0xF0)