]> git.sesse.net Git - pistorm/commitdiff
Map some ROMs directly to Musashi as well?
authorbeeanyew <beeanyew@gmail.com>
Thu, 31 Dec 2020 13:30:28 +0000 (14:30 +0100)
committerbeeanyew <beeanyew@gmail.com>
Thu, 31 Dec 2020 13:30:28 +0000 (14:30 +0100)
config_file/config_file.c

index 76d0bb6011e565a53636d56e5e02ac242964f316..2ce16e167a09cec28ff4e16477559aa69af991bc 100644 (file)
@@ -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;