diff options
Diffstat (limited to 'src/devices/bus/pce/pce_slot.cpp')
-rw-r--r-- | src/devices/bus/pce/pce_slot.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/pce/pce_slot.cpp b/src/devices/bus/pce/pce_slot.cpp index 99b625244af..eb6fd88965a 100644 --- a/src/devices/bus/pce/pce_slot.cpp +++ b/src/devices/bus/pce/pce_slot.cpp @@ -227,11 +227,11 @@ image_init_result pce_cart_slot_device::call_load() if (m_cart) { uint32_t offset; - uint32_t len = (software_entry() == nullptr) ? length() : get_software_region_length("rom"); + uint32_t len = !loaded_through_softlist() ? length() : get_software_region_length("rom"); uint8_t *ROM; // From fullpath, check for presence of a header and skip it - if (software_entry() == nullptr && (len % 0x4000) == 512) + if (!loaded_through_softlist() && (len % 0x4000) == 512) { logerror("Rom-header found, skipping\n"); offset = 512; @@ -242,7 +242,7 @@ image_init_result pce_cart_slot_device::call_load() m_cart->rom_alloc(len, tag()); ROM = m_cart->get_rom_base(); - if (software_entry() == nullptr) + if (!loaded_through_softlist()) fread(ROM, len); else memcpy(ROM, get_software_region("rom"), len); @@ -263,7 +263,7 @@ image_init_result pce_cart_slot_device::call_load() m_cart->rom_map_setup(len); - if (software_entry() == nullptr) + if (!loaded_through_softlist()) m_type = get_cart_type(ROM, len); else { |