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/imagedev/bitbngr.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/imagedev/bitbngr.cpp')
-rw-r--r-- | src/devices/imagedev/bitbngr.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/imagedev/bitbngr.cpp b/src/devices/imagedev/bitbngr.cpp index 79e4dd0df36..18842cb8005 100644 --- a/src/devices/imagedev/bitbngr.cpp +++ b/src/devices/imagedev/bitbngr.cpp @@ -82,16 +82,16 @@ void bitbanger_device::device_config_complete(void) call_load -------------------------------------------------*/ -bool bitbanger_device::call_load(void) +image_init_result bitbanger_device::call_load(void) { /* we don't need to do anything special */ - return IMAGE_INIT_PASS; + return image_init_result::PASS; } -bool bitbanger_device::call_create(int format_type, util::option_resolution *format_options) +image_init_result bitbanger_device::call_create(int format_type, util::option_resolution *format_options) { /* we don't need to do anything special */ - return IMAGE_INIT_PASS; + return image_init_result::PASS; } /*------------------------------------------------- |