Mercurial > repos > blastem
diff romdb.c @ 1259:23c94f5266d1
Support for the Realtec mapper. Needs testing with games besides The Earth Defend
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 02 Mar 2017 21:08:33 -0800 |
parents | 2e6dcb5c11a2 |
children | 34113230fd88 |
line wrap: on
line diff
--- a/romdb.c Wed Mar 01 00:14:50 2017 -0800 +++ b/romdb.c Thu Mar 02 21:08:33 2017 -0800 @@ -6,6 +6,7 @@ #include "genesis.h" #include "menu.h" #include "xband.h" +#include "realtec.h" #define DOM_TITLE_START 0x120 #define DOM_TITLE_END 0x150 @@ -847,9 +848,12 @@ tern_node * entry = tern_find_ptr(rom_db, product_id); if (!entry) { puts("Not found in ROM DB, examining header\n"); - if (xband_detect(rom, rom_size)) { - return xband_configure_rom(rom_db, rom, rom_size, lock_on, lock_on_size, base_map, base_chunks); - } + if (xband_detect(rom, rom_size)) { + return xband_configure_rom(rom_db, rom, rom_size, lock_on, lock_on_size, base_map, base_chunks); + } + if (realtec_detect(rom, rom_size)) { + return realtec_configure_rom(rom, rom_size, base_map, base_chunks); + } return configure_rom_heuristics(rom, rom_size, base_map, base_chunks); } rom_info info;