Allow SNES Rom and Ram sizes to be displayed if not in table
This commit is contained in:
parent
e9f47ec5d0
commit
8cda1efe02
|
|
@ -368,10 +368,8 @@ function isvalidheader(internal_header)
|
||||||
-- Spot check a few fields.
|
-- Spot check a few fields.
|
||||||
-- TODO: Check more/all fields, look for printable name?
|
-- TODO: Check more/all fields, look for printable name?
|
||||||
local valid_rom_type = hardware_type[internal_header["rom_type"]]
|
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"]]
|
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
|
end
|
||||||
|
|
||||||
function test()
|
function test()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue