summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/eti660.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/mame/drivers/eti660.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/mame/drivers/eti660.cpp')
-rw-r--r--src/mame/drivers/eti660.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/eti660.cpp b/src/mame/drivers/eti660.cpp
index 6f55f3fc43d..e84f149805c 100644
--- a/src/mame/drivers/eti660.cpp
+++ b/src/mame/drivers/eti660.cpp
@@ -269,7 +269,7 @@ QUICKLOAD_LOAD_MEMBER( eti660_state, eti660 )
int quick_length;
dynamic_buffer quick_data;
int read_;
- int result = IMAGE_INIT_FAIL;
+ image_init_result result = image_init_result::FAIL;
quick_length = image.length();
quick_data.resize(quick_length);
@@ -291,7 +291,7 @@ QUICKLOAD_LOAD_MEMBER( eti660_state, eti660 )
else
image.message(" Quickload: size=%04X : start=%04X : end=%04X : Press 8 to start",quick_length,quick_addr,quick_addr+quick_length);
- result = IMAGE_INIT_PASS;
+ result = image_init_result::PASS;
}
return result;