summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/apf/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/apf/slot.cpp')
-rw-r--r--src/devices/bus/apf/slot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/apf/slot.cpp b/src/devices/bus/apf/slot.cpp
index 8999c523649..afe50d8a9b5 100644
--- a/src/devices/bus/apf/slot.cpp
+++ b/src/devices/bus/apf/slot.cpp
@@ -160,7 +160,7 @@ image_init_result apf_cart_slot_device::call_load()
{
if (m_cart)
{
- uint32_t size = (software_entry() == nullptr) ? length() : get_software_region_length("rom");
+ uint32_t size = !loaded_through_softlist() ? length() : get_software_region_length("rom");
if (size > 0x3800)
{
@@ -170,12 +170,12 @@ image_init_result apf_cart_slot_device::call_load()
m_cart->rom_alloc(size, tag());
- if (software_entry() == nullptr)
+ if (!loaded_through_softlist())
fread(m_cart->get_rom_base(), size);
else
memcpy(m_cart->get_rom_base(), get_software_region("rom"), size);
- if (software_entry() == nullptr)
+ if (!loaded_through_softlist())
{
m_type = APF_STD;
// attempt to identify Space Destroyer, which needs 1K of additional RAM