mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Fixed remove favorites via "configure machine" menu. (nw)
This commit is contained in:
parent
4d3d404d17
commit
bceb3e34f8
@ -681,6 +681,7 @@ menu_machine_configure::menu_machine_configure(mame_ui_manager &mui, render_cont
|
||||
, x0(_x0)
|
||||
, y0(_y0)
|
||||
, m_curbios(0)
|
||||
, m_fav_reset(false)
|
||||
{
|
||||
// parse the INI file
|
||||
std::string error;
|
||||
@ -690,6 +691,8 @@ menu_machine_configure::menu_machine_configure(mame_ui_manager &mui, render_cont
|
||||
|
||||
menu_machine_configure::~menu_machine_configure()
|
||||
{
|
||||
if (m_fav_reset && main_filters::actual == FILTER_FAVORITE)
|
||||
reset_topmost(reset_options::SELECT_FIRST);
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
@ -724,9 +727,9 @@ void menu_machine_configure::handle()
|
||||
mame_machine_manager::instance()->favorite().add_favorite_game(m_drv);
|
||||
reset(reset_options::REMEMBER_POSITION);
|
||||
break;
|
||||
|
||||
case DELFAV:
|
||||
mame_machine_manager::instance()->favorite().remove_favorite_game();
|
||||
m_fav_reset = true;
|
||||
reset(reset_options::REMEMBER_POSITION);
|
||||
break;
|
||||
case CONTROLLER:
|
||||
|
@ -165,6 +165,7 @@ private:
|
||||
s_bios m_bios;
|
||||
std::size_t m_curbios;
|
||||
void setup_bios();
|
||||
bool m_fav_reset;
|
||||
};
|
||||
|
||||
//-------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user