diff options
| author | 2016-08-01 18:46:56 +1000 | |
|---|---|---|
| committer | 2016-08-01 18:47:22 +1000 | |
| commit | 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) | |
| tree | 71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/emu/debug/debugcmd.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/emu/debug/debugcmd.cpp')
| -rw-r--r-- | src/emu/debug/debugcmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index ff734e9f65d..11f876d912f 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -2940,7 +2940,7 @@ void debugger_commands::execute_mount(int ref, int params, const char **param) { if (strcmp(img.brief_instance_name(),param[0]) == 0) { - if (img.load(param[1])==IMAGE_INIT_FAIL) + if (img.load(param[1]) != image_init_result::PASS) m_console.printf("Unable to mount file %s on %s\n",param[1],param[0]); else m_console.printf("File %s mounted on %s\n",param[1],param[0]); |
