From d85bd0c9435bbcab8b63b07652a01e4e5a4a6eaf Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 15 Jan 2018 09:04:43 -0800 Subject: Initial work on MegaWiFi support --- romdb.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'romdb.c') diff --git a/romdb.c b/romdb.c index 983829b..e580797 100644 --- a/romdb.c +++ b/romdb.c @@ -11,6 +11,7 @@ #include "nor.h" #include "sega_mapper.h" #include "multi_game.h" +#include "megawifi.h" #define DOM_TITLE_START 0x120 #define DOM_TITLE_END 0x150 @@ -778,6 +779,12 @@ void map_iter_fun(char *key, tern_val val, uint8_t valtype, void *data) map->mask = 0xFF; map->write_16 = write_multi_game_w; map->write_8 = write_multi_game_b; + } else if (!strcmp(dtype, "megawifi")) { + map->write_16 = megawifi_write_w; + map->write_8 = megawifi_write_b; + map->read_16 = megawifi_read_w; + map->read_8 = megawifi_read_b; + map->mask = 0xFFFFFF; } else { fatal_error("Invalid device type %s for ROM DB map entry %d with address %s\n", dtype, state->index, key); } -- cgit v1.2.3