summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/odyssey2/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/odyssey2/slot.cpp')
-rw-r--r--src/devices/bus/odyssey2/slot.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/odyssey2/slot.cpp b/src/devices/bus/odyssey2/slot.cpp
index 2593647a23c..be6f1441876 100644
--- a/src/devices/bus/odyssey2/slot.cpp
+++ b/src/devices/bus/odyssey2/slot.cpp
@@ -162,15 +162,15 @@ image_init_result o2_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");
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 = O2_STD;
if (size == 12288)