summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/cpc/cpc_rom.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-08-01 18:46:56 +1000
committer Vas Crabb <vas@vastheman.com>2016-08-01 18:47:22 +1000
commit15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch)
tree71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/devices/bus/cpc/cpc_rom.cpp
parentc4c05c9735a5b956de128d6017027658b6c61a8e (diff)
Turn image init/validate into scoped enums to avoid accidental casts to/from integer and boolean types
The image error should also be turned into a scoped enum - the menus were assuming it was the same thing as an init result
Diffstat (limited to 'src/devices/bus/cpc/cpc_rom.cpp')
-rw-r--r--src/devices/bus/cpc/cpc_rom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/bus/cpc/cpc_rom.cpp b/src/devices/bus/cpc/cpc_rom.cpp
index d0d59ea4452..9b68acbe422 100644
--- a/src/devices/bus/cpc/cpc_rom.cpp
+++ b/src/devices/bus/cpc/cpc_rom.cpp
@@ -105,7 +105,7 @@ void rom_image_device::device_start()
/*-------------------------------------------------
DEVICE_IMAGE_LOAD( rom )
-------------------------------------------------*/
-bool rom_image_device::call_load()
+image_init_result rom_image_device::call_load()
{
device_image_interface* image = this;
UINT64 size = image->length();
@@ -121,7 +121,7 @@ bool rom_image_device::call_load()
image->fread(m_base.get(),16384);
}
- return IMAGE_INIT_PASS;
+ return image_init_result::PASS;
}