summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-04-28 14:59:35 +0200
committer hap <happppp@users.noreply.github.com>2025-04-28 14:59:35 +0200
commit6738b8f67c1605d09f9fb73f79f26a0d10da38bc (patch)
treee14ad85f75780d013ee7915491c6d12f9f45e339 /src/devices
parentfefe91b5717a97f82efa9263fdbf94b0227a7681 (diff)
misc: be consistent with dummy save state var name (easy to grep if the workaround is obsolete in the future)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/bus/plg1x0/plg1x0.cpp2
-rw-r--r--src/devices/bus/plg1x0/plg1x0.h2
-rw-r--r--src/devices/bus/svi3x8/expander/expander.cpp5
-rw-r--r--src/devices/bus/svi3x8/expander/expander.h2
-rw-r--r--src/devices/bus/waveblaster/waveblaster.cpp2
-rw-r--r--src/devices/bus/waveblaster/waveblaster.h2
-rw-r--r--src/devices/sound/mixer.cpp2
-rw-r--r--src/devices/sound/mixer.h2
8 files changed, 9 insertions, 10 deletions
diff --git a/src/devices/bus/plg1x0/plg1x0.cpp b/src/devices/bus/plg1x0/plg1x0.cpp
index 939b4265e5d..1bbded3ff18 100644
--- a/src/devices/bus/plg1x0/plg1x0.cpp
+++ b/src/devices/bus/plg1x0/plg1x0.cpp
@@ -19,7 +19,7 @@ plg1x0_connector::plg1x0_connector(const machine_config &mconfig, const char *ta
void plg1x0_connector::device_start()
{
- save_item(NAME(m_state_system_is_annoying));
+ save_item(NAME(m_dummy_save));
}
void plg1x0_connector::midi_rx(int state)
diff --git a/src/devices/bus/plg1x0/plg1x0.h b/src/devices/bus/plg1x0/plg1x0.h
index b4917ba9b39..dd7186a58b0 100644
--- a/src/devices/bus/plg1x0/plg1x0.h
+++ b/src/devices/bus/plg1x0/plg1x0.h
@@ -53,7 +53,7 @@ public:
void do_midi_tx(int state) { m_midi_tx(state); }
protected:
- bool m_state_system_is_annoying = true;
+ bool m_dummy_save = false; // needed for save-state support
devcb_write_line m_midi_tx;
virtual void device_start() override ATTR_COLD;
diff --git a/src/devices/bus/svi3x8/expander/expander.cpp b/src/devices/bus/svi3x8/expander/expander.cpp
index 652e32467b5..e75be84a7ba 100644
--- a/src/devices/bus/svi3x8/expander/expander.cpp
+++ b/src/devices/bus/svi3x8/expander/expander.cpp
@@ -38,8 +38,7 @@ svi_expander_device::svi_expander_device(const machine_config &mconfig, const ch
m_ctrl1_handler(*this),
m_ctrl2_handler(*this),
m_excsr_handler(*this, 0xff),
- m_excsw_handler(*this),
- m_dummy(0)
+ m_excsw_handler(*this)
{
}
@@ -61,7 +60,7 @@ void svi_expander_device::device_start()
m_module = get_card_device();
// register for save states
- save_item(NAME(m_dummy));
+ save_item(NAME(m_dummy_save));
}
//-------------------------------------------------
diff --git a/src/devices/bus/svi3x8/expander/expander.h b/src/devices/bus/svi3x8/expander/expander.h
index 393b0fb2761..997f10afc1e 100644
--- a/src/devices/bus/svi3x8/expander/expander.h
+++ b/src/devices/bus/svi3x8/expander/expander.h
@@ -113,7 +113,7 @@ private:
devcb_read8 m_excsr_handler;
devcb_write8 m_excsw_handler;
- uint8_t m_dummy; // needed for save-state support
+ bool m_dummy_save = false; // needed for save-state support
};
diff --git a/src/devices/bus/waveblaster/waveblaster.cpp b/src/devices/bus/waveblaster/waveblaster.cpp
index fc019ff62e1..a1a12323879 100644
--- a/src/devices/bus/waveblaster/waveblaster.cpp
+++ b/src/devices/bus/waveblaster/waveblaster.cpp
@@ -22,7 +22,7 @@ waveblaster_connector::waveblaster_connector(const machine_config &mconfig, cons
void waveblaster_connector::device_start()
{
- save_item(NAME(m_state_system_is_annoying));
+ save_item(NAME(m_dummy_save));
}
void waveblaster_connector::midi_rx(int state)
diff --git a/src/devices/bus/waveblaster/waveblaster.h b/src/devices/bus/waveblaster/waveblaster.h
index 4276d8d31cc..47d6558f966 100644
--- a/src/devices/bus/waveblaster/waveblaster.h
+++ b/src/devices/bus/waveblaster/waveblaster.h
@@ -31,7 +31,7 @@ public:
void do_midi_tx(int state) { m_midi_tx(state); }
protected:
- bool m_state_system_is_annoying = true;
+ bool m_dummy_save = false; // needed for save-state support
devcb_write_line m_midi_tx;
virtual void device_start() override ATTR_COLD;
diff --git a/src/devices/sound/mixer.cpp b/src/devices/sound/mixer.cpp
index ba57be9b10c..e92dc8fbfe1 100644
--- a/src/devices/sound/mixer.cpp
+++ b/src/devices/sound/mixer.cpp
@@ -28,5 +28,5 @@ mixer_device::mixer_device(const machine_config &mconfig, const char *tag, devic
void mixer_device::device_start()
{
// register for save states
- save_item(NAME(m_dummy));
+ save_item(NAME(m_dummy_save));
}
diff --git a/src/devices/sound/mixer.h b/src/devices/sound/mixer.h
index f3a26030ea1..f467ec6d636 100644
--- a/src/devices/sound/mixer.h
+++ b/src/devices/sound/mixer.h
@@ -24,7 +24,7 @@ protected:
virtual void device_start() override ATTR_COLD;
private:
- u8 m_dummy = 0; // needed for save-state support
+ bool m_dummy_save = false; // needed for save-state support
};
#endif // MAME_SOUND_MIXER_H