diff options
author | 2016-08-01 18:46:56 +1000 | |
---|---|---|
committer | 2016-08-01 18:47:22 +1000 | |
commit | 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) | |
tree | 71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/devices/machine/appldriv.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/devices/machine/appldriv.cpp')
-rw-r--r-- | src/devices/machine/appldriv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |