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/devices/machine/appldriv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/machine/appldriv.cpp') diff --git a/src/devices/machine/appldriv.cpp b/src/devices/machine/appldriv.cpp index 139da446140..c5b86d071e2 100644 --- a/src/devices/machine/appldriv.cpp +++ b/src/devices/machine/appldriv.cpp @@ -320,9 +320,9 @@ void apple525_floppy_image_device::device_start() memset(track_data, 0, sizeof(track_data)); } -bool apple525_floppy_image_device::call_load() +image_init_result apple525_floppy_image_device::call_load() { - int result = legacy_floppy_image_device::call_load(); + image_init_result result = legacy_floppy_image_device::call_load(); floppy_drive_seek(-999); floppy_drive_seek(+35/2); return result; -- cgit v1.2.3-70-g09d2