Allow SNES Rom and Ram sizes to be displayed if not in table

This commit is contained in:
Joel Smith 2019-07-09 23:24:06 -07:00
parent e9f47ec5d0
commit 8cda1efe02
1 changed files with 22 additions and 24 deletions

View File

@ -368,10 +368,8 @@ function isvalidheader(internal_header)
-- Spot check a few fields.
-- TODO: Check more/all fields, look for printable name?
local valid_rom_type = hardware_type[internal_header["rom_type"]]
local valid_rom_size = rom_ubound[internal_header["rom_size"]]
local valid_sram_size = ram_size_tbl[internal_header["sram_size"]]
local valid_destination_code = destination_code[internal_header["destination_code"]]
return valid_rom_type and valid_rom_size and valid_sram_size and valid_destination_code
return valid_rom_type and internal_header["rom_size"] and internal_header["sram_size"] and valid_destination_code
end
function test()