summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/beta.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)
tree71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/mame/drivers/beta.cpp
parentc4c05c9735a5b956de128d6017027658b6c61a8e (diff)
downloadmame-15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703.tar.xz
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/beta.cpp')
-rw-r--r--src/mame/drivers/beta.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/beta.cpp b/src/mame/drivers/beta.cpp
index 024a42d5c69..f9b946f4cd0 100644
--- a/src/mame/drivers/beta.cpp
+++ b/src/mame/drivers/beta.cpp
@@ -289,13 +289,13 @@ DEVICE_IMAGE_LOAD_MEMBER( beta_state, beta_eprom )
if (size != 0x800)
{
image.seterror(IMAGE_ERROR_UNSPECIFIED, "Unsupported cartridge size");
- return IMAGE_INIT_FAIL;
+ return image_init_result::FAIL;
}
m_eprom->rom_alloc(size, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE);
m_eprom->common_load_rom(m_eprom->get_rom_base(), size, "rom");
- return IMAGE_INIT_PASS;
+ return image_init_result::PASS;
}
DEVICE_IMAGE_UNLOAD_MEMBER( beta_state, beta_eprom )