summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-01-15 09:04:43 -0800
committerMichael Pavone <pavone@retrodev.com>2018-01-15 09:04:43 -0800
commitd85bd0c9435bbcab8b63b07652a01e4e5a4a6eaf (patch)
tree2348425fda82f293194405c95dc7875f7dcd8798 /romdb.c
parent15b6f9038a33cdab77f7fe380d6f41fd284fd9c5 (diff)
Initial work on MegaWiFi support
Diffstat (limited to 'romdb.c')
-rw-r--r--romdb.c7
1 files changed, 7 insertions, 0 deletions
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);
}