diff options
author | 2016-08-01 18:46:56 +1000 | |
---|---|---|
committer | 2016-08-01 18:47:22 +1000 | |
commit | 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) | |
tree | 71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/devices/bus/kc/kc.cpp | |
parent | c4c05c9735a5b956de128d6017027658b6c61a8e (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/kc/kc.cpp')
-rw-r--r-- | src/devices/bus/kc/kc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/kc/kc.cpp b/src/devices/bus/kc/kc.cpp index 6be7e9432df..bd379fd064e 100644 --- a/src/devices/bus/kc/kc.cpp +++ b/src/devices/bus/kc/kc.cpp @@ -328,7 +328,7 @@ void kccart_slot_device::device_config_complete() call load -------------------------------------------------*/ -bool kccart_slot_device::call_load() +image_init_result kccart_slot_device::call_load() { if (m_cart) { @@ -349,10 +349,10 @@ bool kccart_slot_device::call_load() } } else - return IMAGE_INIT_FAIL; + return image_init_result::FAIL; } - return IMAGE_INIT_PASS; + return image_init_result::PASS; } /*------------------------------------------------- |