summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/jakks_gamekey
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/jakks_gamekey')
-rw-r--r--src/devices/bus/jakks_gamekey/slot.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/bus/jakks_gamekey/slot.cpp b/src/devices/bus/jakks_gamekey/slot.cpp
index c1760874010..7da3904f32c 100644
--- a/src/devices/bus/jakks_gamekey/slot.cpp
+++ b/src/devices/bus/jakks_gamekey/slot.cpp
@@ -183,8 +183,7 @@ std::string jakks_gamekey_slot_device::get_default_card_software(get_default_car
hook.image_file()->length(len); // FIXME: check error return, guard against excessively large files
std::vector<uint8_t> rom(len);
- size_t actual;
- hook.image_file()->read(&rom[0], len, actual); // FIXME: check error return or read returning short
+ read(*hook.image_file(), &rom[0], len); // FIXME: check error return or read returning short
int const type = get_cart_type(&rom[0], len);
char const *const slot_string = jakks_gamekey_get_slot(type);