From c86423760eca307a8d4a9c21219084233cccc83a Mon Sep 17 00:00:00 2001 From: beeanyew Date: Thu, 31 Dec 2020 14:30:28 +0100 Subject: [PATCH] Map some ROMs directly to Musashi as well? --- config_file/config_file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config_file/config_file.c b/config_file/config_file.c index 76d0bb6..2ce16e1 100644 --- a/config_file/config_file.c +++ b/config_file/config_file.c @@ -231,6 +231,8 @@ void add_mapping(struct emulator_config *cfg, unsigned int type, unsigned int ad } printf("[MAP %d] Added %s mapping for range %.8lX-%.8lX ID: %s\n", index, map_type_names[type], cfg->map_offset[index], cfg->map_offset[index] + cfg->map_size[index] - 1, cfg->map_id[index] ? cfg->map_id[index] : "None"); + if (cfg->map_size[index] == cfg->rom_size[index]) + m68k_add_rom_range(cfg->map_offset[index], cfg->map_high[index], cfg->map_data[index]); return; -- 2.39.2