From: beeanyew Date: Thu, 31 Dec 2020 13:30:28 +0000 (+0100) Subject: Map some ROMs directly to Musashi as well? X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c86423760eca307a8d4a9c21219084233cccc83a;p=pistorm Map some ROMs directly to Musashi as well? --- 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;