summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vc4000/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/vc4000/slot.cpp')
-rw-r--r--src/devices/bus/vc4000/slot.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/bus/vc4000/slot.cpp b/src/devices/bus/vc4000/slot.cpp
index 8de01177448..94de9446dc2 100644
--- a/src/devices/bus/vc4000/slot.cpp
+++ b/src/devices/bus/vc4000/slot.cpp
@@ -226,17 +226,17 @@ std::string vc4000_cart_slot_device::get_default_card_software(get_default_card_
{
if (hook.image_file())
{
- const char *slot_string;
- uint32_t size = hook.image_file()->size();
+ std::uint64_t size;
+ hook.image_file()->length(size); // FIXME: check error result
int type = VC4000_STD;
// attempt to identify the non-standard types
if (size > 0x1000) // 6k rom + 1k ram - Chess2 only
type = VC4000_CHESS2;
- else if (size > 0x0800) // some 4k roms have 1k of mirrored ram
+ else if (size > 0x0800) // some 4k roms have 1k of mirrored RAM
type = VC4000_RAM1K;
- slot_string = vc4000_get_slot(type);
+ char const *const slot_string = vc4000_get_slot(type);
//printf("type: %s\n", slot_string);