mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
Revert "Use true/false if type used is bool (nw)"
This reverts commit dbd07cef38
.
This commit is contained in:
parent
2426d31f98
commit
2131d9ad3a
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
@ -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;
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user