mirror of https://github.com/stella-emu/stella.git
replaced "cycles" with "MIPS" in DeveloperDialog
This commit is contained in:
parent
8e9149a233
commit
ab5ca2db8f
|
@ -62,7 +62,7 @@ void DevSettingsHandler::loadSettings(SettingsSet set)
|
||||||
#endif
|
#endif
|
||||||
// Thumb ARM emulation exception
|
// Thumb ARM emulation exception
|
||||||
myThumbException[set] = devSettings ? settings.getBool("dev.thumb.trapfatal") : false;
|
myThumbException[set] = devSettings ? settings.getBool("dev.thumb.trapfatal") : false;
|
||||||
myArmCycles[set] = devSettings ? settings.getInt("dev.arm.mips") : 250; // TODO: use constant
|
myArmSpeed[set] = devSettings ? settings.getInt("dev.arm.mips") : 250; // TODO: use constant
|
||||||
|
|
||||||
// TIA tab
|
// TIA tab
|
||||||
myTIAType[set] = devSettings ? settings.getString("dev.tia.type") : "standard";
|
myTIAType[set] = devSettings ? settings.getString("dev.tia.type") : "standard";
|
||||||
|
|
|
@ -67,7 +67,7 @@ class DevSettingsHandler
|
||||||
std::array<bool, numSets> myWRPortBreak;
|
std::array<bool, numSets> myWRPortBreak;
|
||||||
#endif
|
#endif
|
||||||
std::array<bool, numSets> myThumbException;
|
std::array<bool, numSets> myThumbException;
|
||||||
std::array<int, numSets> myArmCycles;
|
std::array<int, numSets> myArmSpeed;
|
||||||
// TIA sets
|
// TIA sets
|
||||||
std::array<string, numSets> myTIAType;
|
std::array<string, numSets> myTIAType;
|
||||||
std::array<bool, numSets> myPlInvPhase;
|
std::array<bool, numSets> myPlInvPhase;
|
||||||
|
|
|
@ -225,7 +225,7 @@ void DeveloperDialog::addEmulationTab(const GUI::Font& font)
|
||||||
|
|
||||||
myArmSpeedWidget = new SliderWidget(myTab, font, HBORDER + INDENT * 1, ypos - 1,
|
myArmSpeedWidget = new SliderWidget(myTab, font, HBORDER + INDENT * 1, ypos - 1,
|
||||||
fontWidth * 10, lineHeight, "Limit ARM speed ",
|
fontWidth * 10, lineHeight, "Limit ARM speed ",
|
||||||
0, kArmSpeedChanged, fontWidth * 10, " cycles");
|
0, kArmSpeedChanged, fontWidth * 9, " MIPS");
|
||||||
myArmSpeedWidget->setMinValue(50); // TODO: use constant
|
myArmSpeedWidget->setMinValue(50); // TODO: use constant
|
||||||
myArmSpeedWidget->setMaxValue(250); // TODO: use constant
|
myArmSpeedWidget->setMaxValue(250); // TODO: use constant
|
||||||
myArmSpeedWidget->setTickmarkIntervals(4);
|
myArmSpeedWidget->setTickmarkIntervals(4);
|
||||||
|
@ -743,7 +743,7 @@ void DeveloperDialog::getWidgetStates(SettingsSet set)
|
||||||
#endif
|
#endif
|
||||||
// Thumb ARM emulation exception
|
// Thumb ARM emulation exception
|
||||||
myThumbException[set] = myThumbExceptionWidget->getState();
|
myThumbException[set] = myThumbExceptionWidget->getState();
|
||||||
myArmCycles[set] = myArmSpeedWidget->getValue();
|
myArmSpeed[set] = myArmSpeedWidget->getValue();
|
||||||
|
|
||||||
// TIA tab
|
// TIA tab
|
||||||
myTIAType[set] = myTIATypeWidget->getSelectedTag().toString();
|
myTIAType[set] = myTIATypeWidget->getSelectedTag().toString();
|
||||||
|
@ -803,7 +803,7 @@ void DeveloperDialog::setWidgetStates(SettingsSet set)
|
||||||
#endif
|
#endif
|
||||||
// Thumb ARM emulation exception
|
// Thumb ARM emulation exception
|
||||||
myThumbExceptionWidget->setState(myThumbException[set]);
|
myThumbExceptionWidget->setState(myThumbException[set]);
|
||||||
myArmSpeedWidget->setValue(myArmCycles[set]);
|
myArmSpeedWidget->setValue(myArmSpeed[set]);
|
||||||
handleConsole();
|
handleConsole();
|
||||||
|
|
||||||
// TIA tab
|
// TIA tab
|
||||||
|
@ -951,7 +951,7 @@ void DeveloperDialog::setDefaults()
|
||||||
#endif
|
#endif
|
||||||
// Thumb ARM emulation exception
|
// Thumb ARM emulation exception
|
||||||
myThumbException[set] = devSettings;
|
myThumbException[set] = devSettings;
|
||||||
myArmCycles[set] = devSettings ? 150 : 250;
|
myArmSpeed[set] = devSettings ? 150 : 250;
|
||||||
|
|
||||||
setWidgetStates(set);
|
setWidgetStates(set);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue