diff options
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 |
commit | 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) | |
tree | 71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/mame/drivers/cd2650.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/mame/drivers/cd2650.cpp')
-rw-r--r-- | src/mame/drivers/cd2650.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/drivers/cd2650.cpp b/src/mame/drivers/cd2650.cpp index ac844445d72..9e72052234a 100644 --- a/src/mame/drivers/cd2650.cpp +++ b/src/mame/drivers/cd2650.cpp @@ -195,7 +195,8 @@ WRITE8_MEMBER( cd2650_state::kbd_put ) QUICKLOAD_LOAD_MEMBER( cd2650_state, cd2650 ) { - int i, result = IMAGE_INIT_FAIL; + int i; + image_init_result result = image_init_result::FAIL; int quick_length = image.length(); if (quick_length < 0x1500) @@ -253,7 +254,7 @@ QUICKLOAD_LOAD_MEMBER( cd2650_state, cd2650 ) // Start the quickload m_maincpu->set_state_int(S2650_PC, exec_addr); - result = IMAGE_INIT_PASS; + result = image_init_result::PASS; } } } |