diff --git a/src/devices/cpu/mcs48/mcs48.cpp b/src/devices/cpu/mcs48/mcs48.cpp index 112c8c42464..d27e8cf438e 100644 --- a/src/devices/cpu/mcs48/mcs48.cpp +++ b/src/devices/cpu/mcs48/mcs48.cpp @@ -954,7 +954,7 @@ void mcs48_cpu_device::device_start() m_t1_history = 0; m_dbbi = 0; m_dbbo = 0; - m_irq_state = false; + m_irq_state = 0; /* FIXME: Current implementation suboptimal */ m_ea = (m_int_rom_size ? 0 : 1); diff --git a/src/devices/imagedev/bitbngr.h b/src/devices/imagedev/bitbngr.h index e78e9a2dac8..fd7b179b14a 100644 --- a/src/devices/imagedev/bitbngr.h +++ b/src/devices/imagedev/bitbngr.h @@ -23,11 +23,11 @@ public: // image device virtual iodevice_t image_type() const override { return IO_SERIAL; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return true; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 1; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *file_extensions() const override { return ""; } void output(uint8_t data); diff --git a/src/devices/imagedev/cassette.h b/src/devices/imagedev/cassette.h index f2bb72c8186..4a98dc3b61a 100644 --- a/src/devices/imagedev/cassette.h +++ b/src/devices/imagedev/cassette.h @@ -64,11 +64,11 @@ public: virtual iodevice_t image_type() const override { return IO_CASSETTE; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return true; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 1; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override { return m_interface; } virtual const char *file_extensions() const override { return m_extension_list; } diff --git a/src/devices/imagedev/chd_cd.h b/src/devices/imagedev/chd_cd.h index dfdd159da3f..9bf63749b58 100644 --- a/src/devices/imagedev/chd_cd.h +++ b/src/devices/imagedev/chd_cd.h @@ -38,11 +38,11 @@ public: virtual iodevice_t image_type() const override { return IO_CDROM; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return false; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 0; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override { return m_interface; } virtual const char *file_extensions() const override { return m_extension_list; } diff --git a/src/devices/imagedev/diablo.h b/src/devices/imagedev/diablo.h index fe139359289..e19cc598fa0 100644 --- a/src/devices/imagedev/diablo.h +++ b/src/devices/imagedev/diablo.h @@ -38,11 +38,11 @@ public: virtual iodevice_t image_type() const override { return IO_HARDDISK; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override { return m_interface; } virtual const char *file_extensions() const override { return "chd,dsk"; } virtual const util::option_guide &create_option_guide() const override; diff --git a/src/devices/imagedev/flopdrv.h b/src/devices/imagedev/flopdrv.h index 8f2ce16e0d2..ca9f469edb6 100644 --- a/src/devices/imagedev/flopdrv.h +++ b/src/devices/imagedev/flopdrv.h @@ -107,11 +107,11 @@ public: virtual iodevice_t image_type() const override { return IO_FLOPPY; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return true; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 1; } virtual bool is_creatable() const override; - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override; virtual const char *file_extensions() const override { return m_extension_list; } virtual const util::option_guide &create_option_guide() const override { return floppy_option_guide; } diff --git a/src/devices/imagedev/harddriv.h b/src/devices/imagedev/harddriv.h index 0257768b8fb..6347a43f624 100644 --- a/src/devices/imagedev/harddriv.h +++ b/src/devices/imagedev/harddriv.h @@ -40,11 +40,11 @@ public: virtual iodevice_t image_type() const override { return IO_HARDDISK; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override { return m_interface; } virtual const char *file_extensions() const override { return "chd,hd"; } virtual const util::option_guide &create_option_guide() const override; diff --git a/src/devices/imagedev/midiin.h b/src/devices/imagedev/midiin.h index 7f93d591787..08429c54003 100644 --- a/src/devices/imagedev/midiin.h +++ b/src/devices/imagedev/midiin.h @@ -36,11 +36,11 @@ public: // image device virtual iodevice_t image_type() const override { return IO_MIDIIN; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return false; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 0; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *file_extensions() const override { return "mid"; } virtual bool core_opens_image_file() const override { return false; } diff --git a/src/devices/imagedev/midiout.h b/src/devices/imagedev/midiout.h index 96c7f477172..b62e9a161c5 100644 --- a/src/devices/imagedev/midiout.h +++ b/src/devices/imagedev/midiout.h @@ -39,11 +39,11 @@ public: // image device virtual iodevice_t image_type() const override { return IO_MIDIOUT; } - virtual bool is_readable() const override { return false; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 0; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *file_extensions() const override { return "mid"; } virtual bool core_opens_image_file() const override { return false; } diff --git a/src/devices/imagedev/printer.h b/src/devices/imagedev/printer.h index 5ec8044c9e7..c2a547ef046 100644 --- a/src/devices/imagedev/printer.h +++ b/src/devices/imagedev/printer.h @@ -36,11 +36,11 @@ public: // image device virtual iodevice_t image_type() const override { return IO_PRINTER; } - virtual bool is_readable() const override { return false; } - virtual bool is_writeable() const override { return true; } - virtual bool is_creatable() const override { return true; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 0; } + virtual bool is_writeable() const override { return 1; } + virtual bool is_creatable() const override { return 1; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *file_extensions() const override { return "prn"; } // specific implementation diff --git a/src/devices/imagedev/snapquik.h b/src/devices/imagedev/snapquik.h index cb101dcb4ef..6c3c08743b7 100644 --- a/src/devices/imagedev/snapquik.h +++ b/src/devices/imagedev/snapquik.h @@ -32,11 +32,11 @@ public: virtual const software_list_loader &get_software_list_loader() const override { return image_software_list_loader::instance(); } virtual iodevice_t image_type() const override { return IO_SNAPSHOT; } - virtual bool is_readable() const override { return true; } - virtual bool is_writeable() const override { return false; } - virtual bool is_creatable() const override { return false; } - virtual bool must_be_loaded() const override { return false; } - virtual bool is_reset_on_load() const override { return false; } + virtual bool is_readable() const override { return 1; } + virtual bool is_writeable() const override { return 0; } + virtual bool is_creatable() const override { return 0; } + virtual bool must_be_loaded() const override { return 0; } + virtual bool is_reset_on_load() const override { return 0; } virtual const char *image_interface() const override { return m_interface; } virtual const char *file_extensions() const override { return m_file_extensions; } diff --git a/src/devices/sound/samples.cpp b/src/devices/sound/samples.cpp index 22227fee09f..1d0c3c8c179 100644 --- a/src/devices/sound/samples.cpp +++ b/src/devices/sound/samples.cpp @@ -249,8 +249,8 @@ void samples_device::device_start() chan.source = nullptr; chan.source_num = -1; chan.step = 0; - chan.loop = false; - chan.paused = false; + chan.loop = 0; + chan.paused = 0; // register with the save state system save_item(NAME(chan.source_length), channel); diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index 09af9be430f..d7bf97a6562 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -672,7 +672,7 @@ void mame_ui_manager::set_show_fps(bool show) m_showfps = show; if (!show) { - m_showfps = false; + m_showfps = 0; m_showfps_end = 0; } } diff --git a/src/lib/formats/ipf_dsk.cpp b/src/lib/formats/ipf_dsk.cpp index 204468fc5ba..da50e850ea8 100644 --- a/src/lib/formats/ipf_dsk.cpp +++ b/src/lib/formats/ipf_dsk.cpp @@ -484,7 +484,7 @@ bool ipf_format::generate_block_data(const uint8_t *data, const uint8_t *dlimit, if(16*param > tleft) return false; track_write_weak(tpos, 16*param); - context = false; + context = 0; break; default: diff --git a/src/mame/audio/exidy440.cpp b/src/mame/audio/exidy440.cpp index d920ad9fa92..166d449f85f 100644 --- a/src/mame/audio/exidy440.cpp +++ b/src/mame/audio/exidy440.cpp @@ -775,7 +775,7 @@ void exidy440_sound_device::decode_and_filter_cvsd(uint8_t *input, int bytes, in } /* make sure the volume goes smoothly to 0 over the last 512 samples */ - if (IS_ENABLED(FADE_TO_ZERO)) + if (FADE_TO_ZERO) { int16_t *data;