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/emu/debug/debugcmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/emu/debug/debugcmd.cpp') 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]); -- cgit v1.2.3