mirror of https://github.com/stella-emu/stella.git
fixes for developer settings
This commit is contained in:
parent
b564c1c85a
commit
73a8938abf
|
@ -321,7 +321,7 @@ void RiotWidget::loadConfig()
|
||||||
myP1Diff->setSelectedIndex(riot.diffP1());
|
myP1Diff->setSelectedIndex(riot.diffP1());
|
||||||
|
|
||||||
bool devSettings = instance().settings().getBool("dev.settings");
|
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);
|
myConsole->setEditable(false, true);
|
||||||
|
|
||||||
myTVType->setSelectedIndex(riot.tvType());
|
myTVType->setSelectedIndex(riot.tvType());
|
||||||
|
@ -469,7 +469,8 @@ ControllerWidget* RiotWidget::addControlWidget(GuiObject* boss, const GUI::Font&
|
||||||
void RiotWidget::handleConsole()
|
void RiotWidget::handleConsole()
|
||||||
{
|
{
|
||||||
RiotDebug& riot = instance().debugger().riotDebug();
|
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);
|
myTVType->setEnabled(!is7800);
|
||||||
myPause->setEnabled(is7800);
|
myPause->setEnabled(is7800);
|
||||||
|
|
|
@ -371,7 +371,6 @@ void Console::toggleColorLoss()
|
||||||
bool colorloss = !(devSettings && myOSystem.settings().getBool("dev.colorloss"));
|
bool colorloss = !(devSettings && myOSystem.settings().getBool("dev.colorloss"));
|
||||||
if(myTIA->enableColorLoss(colorloss))
|
if(myTIA->enableColorLoss(colorloss))
|
||||||
{
|
{
|
||||||
myOSystem.settings().setValue("dev.colorloss", colorloss);
|
|
||||||
string message = string("PAL color-loss ") +
|
string message = string("PAL color-loss ") +
|
||||||
(colorloss ? "enabled" : "disabled");
|
(colorloss ? "enabled" : "disabled");
|
||||||
myOSystem.frameBuffer().showMessage(message);
|
myOSystem.frameBuffer().showMessage(message);
|
||||||
|
|
Loading…
Reference in New Issue