msx.cpp: Fix MSX2+ soft reset behavior. (#12738)

This commit is contained in:
wilbertpol 2024-09-07 00:45:57 +01:00 committed by GitHub
parent f32a459962
commit 3c13e068bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -730,11 +730,16 @@ void msx2p_base_state::machine_start()
{
msx2_base_state::machine_start();
m_boot_flags = m_cold_boot_flags;
save_item(NAME(m_boot_flags));
save_item(NAME(m_vdp_mode));
}
void msx2p_base_state::machine_reset()
{
msx2_base_state::machine_reset();
m_boot_flags = m_cold_boot_flags;
}
void msx2p_base_state::msx2plus_io_map(address_map &map)
{
msx2_v9958_io_map(map);

View File

@ -351,6 +351,7 @@ protected:
void set_cold_boot_flags(u8 cold_boot_flags) { m_cold_boot_flags = cold_boot_flags; }
virtual void machine_start() override;
virtual void machine_reset() override;
void msx2plus_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout);
void msx2plus_pal_base(ay8910_type ay8910_type, machine_config &config, const internal_layout &layout);