fixes for developer settings

This commit is contained in:
thrust26 2017-11-18 18:22:10 +01:00
parent b564c1c85a
commit 73a8938abf
2 changed files with 3 additions and 3 deletions

View File

@ -321,7 +321,7 @@ void RiotWidget::loadConfig()
myP1Diff->setSelectedIndex(riot.diffP1());
bool devSettings = instance().settings().getBool("dev.settings");
myConsole->setText(instance().settings().getString("dev.console") == "7800" ? "Atari 7800" : "Atari 2600");
myConsole->setText(devSettings && instance().settings().getString("dev.console") == "7800" ? "Atari 7800" : "Atari 2600");
myConsole->setEditable(false, true);
myTVType->setSelectedIndex(riot.tvType());
@ -469,7 +469,8 @@ ControllerWidget* RiotWidget::addControlWidget(GuiObject* boss, const GUI::Font&
void RiotWidget::handleConsole()
{
RiotDebug& riot = instance().debugger().riotDebug();
bool is7800 = instance().settings().getString("dev.console") == "7800";
bool devSettings = instance().settings().getBool("dev.settings");
bool is7800 = devSettings && instance().settings().getString("dev.console") == "7800";
myTVType->setEnabled(!is7800);
myPause->setEnabled(is7800);

View File

@ -371,7 +371,6 @@ void Console::toggleColorLoss()
bool colorloss = !(devSettings && myOSystem.settings().getBool("dev.colorloss"));
if(myTIA->enableColorLoss(colorloss))
{
myOSystem.settings().setValue("dev.colorloss", colorloss);
string message = string("PAL color-loss ") +
(colorloss ? "enabled" : "disabled");
myOSystem.frameBuffer().showMessage(message);