summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/binbug.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2016-08-01 18:46:56 +1000
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2016-08-01 18:47:22 +1000
commit15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) (github)
tree71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/mame/drivers/binbug.cpp
parentc4c05c9735a5b956de128d6017027658b6c61a8e (diff)
downloadmame-15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703.tar.bz2
mame-15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703.zip
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/binbug.cpp')
-rw-r--r--src/mame/drivers/binbug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/binbug.cpp b/src/mame/drivers/binbug.cpp
index 8abd74a23cd..b0fb117513c 100644
--- a/src/mame/drivers/binbug.cpp
+++ b/src/mame/drivers/binbug.cpp
@@ -226,7 +226,7 @@ QUICKLOAD_LOAD_MEMBER( binbug_state, binbug )
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();
if (quick_length < 0x0444)
@@ -273,7 +273,7 @@ QUICKLOAD_LOAD_MEMBER( binbug_state, binbug )
// Start the quickload
m_maincpu->set_state_int(S2650_PC, exec_addr);
- result = IMAGE_INIT_PASS;
+ result = image_init_result::PASS;
}
}
}