mirror of https://github.com/stella-emu/stella.git
When the new TIA core is enabled in a build, set it to the default when no
defaults have been specified. The reason being, testers will be running old and new versions of Stella, and with the previous settings, they would have to continually reset 'tia.core' every time they run a new build. Besides, the point is for the new core to be the default, so we may as well enforce that in the code.
This commit is contained in:
parent
7bfaf10e80
commit
9ca6f89778
|
@ -545,10 +545,10 @@ void Console::changeHeight(int direction)
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
AbstractTIA* Console::createTIA()
|
AbstractTIA* Console::createTIA()
|
||||||
{
|
{
|
||||||
string coreType = "default";
|
|
||||||
|
|
||||||
#ifdef SUPPORT_6502TS_TIA
|
#ifdef SUPPORT_6502TS_TIA
|
||||||
coreType = myOSystem.settings().getString("tia.core");
|
string coreType = myOSystem.settings().getString("tia.core");
|
||||||
|
#else
|
||||||
|
string coreType = "default";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (coreType == "default") {
|
if (coreType == "default") {
|
||||||
|
|
|
@ -49,7 +49,7 @@ Settings::Settings(OSystem& osystem)
|
||||||
|
|
||||||
// TIA specific options
|
// TIA specific options
|
||||||
#ifdef SUPPORT_6502TS_TIA
|
#ifdef SUPPORT_6502TS_TIA
|
||||||
setInternal("tia.core", "default");
|
setInternal("tia.core", "6502ts");
|
||||||
#endif
|
#endif
|
||||||
setInternal("tia.zoom", "2");
|
setInternal("tia.zoom", "2");
|
||||||
setInternal("tia.inter", "false");
|
setInternal("tia.inter", "false");
|
||||||
|
@ -330,7 +330,7 @@ void Settings::validate()
|
||||||
|
|
||||||
#ifdef SUPPORT_6502TS_TIA
|
#ifdef SUPPORT_6502TS_TIA
|
||||||
s = getString("tia.core");
|
s = getString("tia.core");
|
||||||
if (s != "6502ts" && s != "default") setInternal("tia.core", "default");
|
if (s != "6502ts" && s != "default") setInternal("tia.core", "6502ts");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue