_stprintf(buf, _T("%s%s_rom"), name, i ? _T("_ext") : _T(""));
cfgfile_dwrite_str (f, buf, rc->romident);
}
- if (rc->autoboot_disabled || rc->dma24bit || rc->inserted || ert->subtypes || ert->settings || ert->id_jumper || br->device_order > 0 || is_custom_romboard(br)) {
+ if (rc->autoboot_disabled || rc->dma24bit || rc->inserted || ert->subtypes ||
+ ert->settings || ert->id_jumper || br->device_order > 0 || is_custom_romboard(br)) {
TCHAR buf2[256], *p;
buf2[0] = 0;
p = buf2;
if (s)
rb->product = (uae_u8)_tstol(s);
xfree(s);
+ s = cfgfile_option_get(value, _T("fault"));
+ if (s)
+ rb->fault = _tstol(s);
+ xfree(s);
if (cfgfile_option_get_bool(value, _T("no_reset_unmap")))
rb->no_reset_unmap = true;
if (cfgfile_option_get_bool(value, _T("nodma")))
_tcscpy(p, _T("force16bit=true"));
p += _tcslen(p);
}
+ if (rb->fault) {
+ if (tmp2[0])
+ *p++ = ',';
+ _stprintf(p, _T("fault=%d"), rb->fault);
+ p += _tcslen(p);
+ }
if (!_tcsicmp(tmp1, _T("chipmem_options")) || !_tcsicmp(tmp1, _T("bogomem_options"))) {
if (!rb->chipramtiming) {
if (tmp2[0])
brc->roms[idx].dma24bit = true;
}
if (cfgfile_option_bool(buf2, _T("inserted")) == 1) {
- brc->roms[idx].inserted= true;
+ brc->roms[idx].inserted = true;
}
p = cfgfile_option_get(buf2, _T("order"));
if (p) {
ce_banktype[i] = ce_banktype[0];
}
}
+ if (mb->fault) {
+ ab->baseaddr_direct_w = NULL;
+ ab->baseaddr_direct_r = NULL;
+ ab->lput = &dummy_lput;
+ ab->wput = &dummy_wput;
+ ab->bput = &dummy_bput;
+ }
}
static void fill_ce_banks (void)