From 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 1 Aug 2016 18:46:56 +1000 Subject: 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 --- src/mame/drivers/binbug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mame/drivers/binbug.cpp') 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; } } } -- cgit v1.2.3