mirror of
https://github.com/holub/mame
synced 2025-10-07 01:16:22 +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_t1_history = 0;
|
||||||
m_dbbi = 0;
|
m_dbbi = 0;
|
||||||
m_dbbo = 0;
|
m_dbbo = 0;
|
||||||
m_irq_state = false;
|
m_irq_state = 0;
|
||||||
|
|
||||||
/* FIXME: Current implementation suboptimal */
|
/* FIXME: Current implementation suboptimal */
|
||||||
m_ea = (m_int_rom_size ? 0 : 1);
|
m_ea = (m_int_rom_size ? 0 : 1);
|
||||||
|
@ -23,11 +23,11 @@ public:
|
|||||||
|
|
||||||
// image device
|
// image device
|
||||||
virtual iodevice_t image_type() const override { return IO_SERIAL; }
|
virtual iodevice_t image_type() const override { return IO_SERIAL; }
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return true; }
|
virtual bool is_creatable() const override { return 1; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *file_extensions() const override { return ""; }
|
virtual const char *file_extensions() const override { return ""; }
|
||||||
|
|
||||||
void output(uint8_t data);
|
void output(uint8_t data);
|
||||||
|
@ -64,11 +64,11 @@ public:
|
|||||||
|
|
||||||
virtual iodevice_t image_type() const override { return IO_CASSETTE; }
|
virtual iodevice_t image_type() const override { return IO_CASSETTE; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return true; }
|
virtual bool is_creatable() const override { return 1; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override { return m_interface; }
|
virtual const char *image_interface() const override { return m_interface; }
|
||||||
virtual const char *file_extensions() const override { return m_extension_list; }
|
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 iodevice_t image_type() const override { return IO_CDROM; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return false; }
|
virtual bool is_writeable() const override { return 0; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override { return m_interface; }
|
virtual const char *image_interface() const override { return m_interface; }
|
||||||
virtual const char *file_extensions() const override { return m_extension_list; }
|
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 iodevice_t image_type() const override { return IO_HARDDISK; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override { return m_interface; }
|
virtual const char *image_interface() const override { return m_interface; }
|
||||||
virtual const char *file_extensions() const override { return "chd,dsk"; }
|
virtual const char *file_extensions() const override { return "chd,dsk"; }
|
||||||
virtual const util::option_guide &create_option_guide() const override;
|
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 iodevice_t image_type() const override { return IO_FLOPPY; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override;
|
virtual bool is_creatable() const override;
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override;
|
virtual const char *image_interface() const override;
|
||||||
virtual const char *file_extensions() const override { return m_extension_list; }
|
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; }
|
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 iodevice_t image_type() const override { return IO_HARDDISK; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override { return m_interface; }
|
virtual const char *image_interface() const override { return m_interface; }
|
||||||
virtual const char *file_extensions() const override { return "chd,hd"; }
|
virtual const char *file_extensions() const override { return "chd,hd"; }
|
||||||
virtual const util::option_guide &create_option_guide() const override;
|
virtual const util::option_guide &create_option_guide() const override;
|
||||||
|
@ -36,11 +36,11 @@ public:
|
|||||||
|
|
||||||
// image device
|
// image device
|
||||||
virtual iodevice_t image_type() const override { return IO_MIDIIN; }
|
virtual iodevice_t image_type() const override { return IO_MIDIIN; }
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return false; }
|
virtual bool is_writeable() const override { return 0; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *file_extensions() const override { return "mid"; }
|
virtual const char *file_extensions() const override { return "mid"; }
|
||||||
virtual bool core_opens_image_file() const override { return false; }
|
virtual bool core_opens_image_file() const override { return false; }
|
||||||
|
|
||||||
|
@ -39,11 +39,11 @@ public:
|
|||||||
|
|
||||||
// image device
|
// image device
|
||||||
virtual iodevice_t image_type() const override { return IO_MIDIOUT; }
|
virtual iodevice_t image_type() const override { return IO_MIDIOUT; }
|
||||||
virtual bool is_readable() const override { return false; }
|
virtual bool is_readable() const override { return 0; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *file_extensions() const override { return "mid"; }
|
virtual const char *file_extensions() const override { return "mid"; }
|
||||||
virtual bool core_opens_image_file() const override { return false; }
|
virtual bool core_opens_image_file() const override { return false; }
|
||||||
|
|
||||||
|
@ -36,11 +36,11 @@ public:
|
|||||||
|
|
||||||
// image device
|
// image device
|
||||||
virtual iodevice_t image_type() const override { return IO_PRINTER; }
|
virtual iodevice_t image_type() const override { return IO_PRINTER; }
|
||||||
virtual bool is_readable() const override { return false; }
|
virtual bool is_readable() const override { return 0; }
|
||||||
virtual bool is_writeable() const override { return true; }
|
virtual bool is_writeable() const override { return 1; }
|
||||||
virtual bool is_creatable() const override { return true; }
|
virtual bool is_creatable() const override { return 1; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *file_extensions() const override { return "prn"; }
|
virtual const char *file_extensions() const override { return "prn"; }
|
||||||
|
|
||||||
// specific implementation
|
// 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 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 iodevice_t image_type() const override { return IO_SNAPSHOT; }
|
||||||
|
|
||||||
virtual bool is_readable() const override { return true; }
|
virtual bool is_readable() const override { return 1; }
|
||||||
virtual bool is_writeable() const override { return false; }
|
virtual bool is_writeable() const override { return 0; }
|
||||||
virtual bool is_creatable() const override { return false; }
|
virtual bool is_creatable() const override { return 0; }
|
||||||
virtual bool must_be_loaded() const override { return false; }
|
virtual bool must_be_loaded() const override { return 0; }
|
||||||
virtual bool is_reset_on_load() const override { return false; }
|
virtual bool is_reset_on_load() const override { return 0; }
|
||||||
virtual const char *image_interface() const override { return m_interface; }
|
virtual const char *image_interface() const override { return m_interface; }
|
||||||
virtual const char *file_extensions() const override { return m_file_extensions; }
|
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 = nullptr;
|
||||||
chan.source_num = -1;
|
chan.source_num = -1;
|
||||||
chan.step = 0;
|
chan.step = 0;
|
||||||
chan.loop = false;
|
chan.loop = 0;
|
||||||
chan.paused = false;
|
chan.paused = 0;
|
||||||
|
|
||||||
// register with the save state system
|
// register with the save state system
|
||||||
save_item(NAME(chan.source_length), channel);
|
save_item(NAME(chan.source_length), channel);
|
||||||
|
@ -672,7 +672,7 @@ void mame_ui_manager::set_show_fps(bool show)
|
|||||||
m_showfps = show;
|
m_showfps = show;
|
||||||
if (!show)
|
if (!show)
|
||||||
{
|
{
|
||||||
m_showfps = false;
|
m_showfps = 0;
|
||||||
m_showfps_end = 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)
|
if(16*param > tleft)
|
||||||
return false;
|
return false;
|
||||||
track_write_weak(tpos, 16*param);
|
track_write_weak(tpos, 16*param);
|
||||||
context = false;
|
context = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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 */
|
/* 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;
|
int16_t *data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user