summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/apexc.cpp
diff options
context:
space:
mode:
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
commit15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch)
tree71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/mame/drivers/apexc.cpp
parentc4c05c9735a5b956de128d6017027658b6c61a8e (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/apexc.cpp')
-rw-r--r--src/mame/drivers/apexc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 2dac4620982..4987c7343fc 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -86,7 +86,7 @@ public:
virtual bool is_reset_on_load() const override { return 1; }
virtual const char *file_extensions() const override { return "apc"; }
- virtual bool call_load() override;
+ virtual image_init_result call_load() override;
virtual void call_unload() override;
protected:
// device-level overrides
@@ -107,7 +107,7 @@ apexc_cylinder_image_device::apexc_cylinder_image_device(const machine_config &m
/*
Open cylinder image and read RAM
*/
-bool apexc_cylinder_image_device::call_load()
+image_init_result apexc_cylinder_image_device::call_load()
{
/* load RAM contents */
m_writable = !is_readonly();
@@ -122,7 +122,7 @@ bool apexc_cylinder_image_device::call_load()
}
#endif
- return IMAGE_INIT_PASS;
+ return image_init_result::PASS;
}
/*