diff options
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 |
commit | 15e7be7ac8e4127e9fc0f9b5c248f4a73ba85703 (patch) | |
tree | 71346f2c2d1ac08e0e9c9f4dea8f2537af380143 /src/devices/bus/megadrive/md_slot.h | |
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/bus/megadrive/md_slot.h')
-rw-r--r-- | src/devices/bus/megadrive/md_slot.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/bus/megadrive/md_slot.h b/src/devices/bus/megadrive/md_slot.h index fccec9586d7..4a86749d991 100644 --- a/src/devices/bus/megadrive/md_slot.h +++ b/src/devices/bus/megadrive/md_slot.h @@ -151,7 +151,7 @@ public: virtual void device_config_complete() override; // image-level overrides - virtual bool call_load() override; + virtual image_init_result call_load() override; virtual void call_unload() override; virtual const software_list_loader &get_software_list_loader() const override { return rom_software_list_loader::instance(); } @@ -167,8 +167,8 @@ public: int get_type() { return m_type; } - int load_list(); - int load_nonlist(); + image_init_result load_list(); + image_init_result load_nonlist(); int get_cart_type(UINT8 *ROM, UINT32 len); void setup_custom_mappers(); |