mirror of https://github.com/stella-emu/stella.git
fix exiting game in MinUICommandDialog
This commit is contained in:
parent
2ee0db23c4
commit
b888d6c029
|
@ -76,7 +76,7 @@ MinUICommandDialog::MinUICommandDialog(OSystem& osystem, DialogContainer& parent
|
||||||
|
|
||||||
mySaveStateButton = ADD_CD_BUTTON("", kSaveStateCmd);
|
mySaveStateButton = ADD_CD_BUTTON("", kSaveStateCmd);
|
||||||
wid.push_back(mySaveStateButton);
|
wid.push_back(mySaveStateButton);
|
||||||
myStateSlotButton = ADD_CD_BUTTON("", kStateSlotCmd);
|
myStateSlotButton = ADD_CD_BUTTON("Change Slot", kStateSlotCmd);
|
||||||
wid.push_back(myStateSlotButton);
|
wid.push_back(myStateSlotButton);
|
||||||
myLoadStateButton = ADD_CD_BUTTON("", kLoadStateCmd);
|
myLoadStateButton = ADD_CD_BUTTON("", kLoadStateCmd);
|
||||||
wid.push_back(myLoadStateButton);
|
wid.push_back(myLoadStateButton);
|
||||||
|
@ -246,7 +246,8 @@ void MinUICommandDialog::handleCommand(CommandSender* sender, int cmd,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kExitGameCmd:
|
case kExitGameCmd:
|
||||||
instance().eventHandler().handleEvent(Event::ExitMode);
|
instance().eventHandler().leaveMenuMode();
|
||||||
|
instance().eventHandler().handleEvent(Event::ExitGame);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -280,7 +281,6 @@ void MinUICommandDialog::updateSlot(int slot)
|
||||||
buf << " " << slot;
|
buf << " " << slot;
|
||||||
|
|
||||||
mySaveStateButton->setLabel("Save State" + buf.str());
|
mySaveStateButton->setLabel("Save State" + buf.str());
|
||||||
myStateSlotButton->setLabel("State Slot" + buf.str());
|
|
||||||
myLoadStateButton->setLabel("Load State" + buf.str());
|
myLoadStateButton->setLabel("Load State" + buf.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue