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:
Stephen Anthony 2016-12-02 10:43:46 -03:30
parent 7bfaf10e80
commit 9ca6f89778
2 changed files with 5 additions and 5 deletions

View File

@ -545,10 +545,10 @@ void Console::changeHeight(int direction)
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AbstractTIA* Console::createTIA()
{
string coreType = "default";
#ifdef SUPPORT_6502TS_TIA
coreType = myOSystem.settings().getString("tia.core");
string coreType = myOSystem.settings().getString("tia.core");
#else
string coreType = "default";
#endif
if (coreType == "default") {

View File

@ -49,7 +49,7 @@ Settings::Settings(OSystem& osystem)
// TIA specific options
#ifdef SUPPORT_6502TS_TIA
setInternal("tia.core", "default");
setInternal("tia.core", "6502ts");
#endif
setInternal("tia.zoom", "2");
setInternal("tia.inter", "false");
@ -330,7 +330,7 @@ void Settings::validate()
#ifdef SUPPORT_6502TS_TIA
s = getString("tia.core");
if (s != "6502ts" && s != "default") setInternal("tia.core", "default");
if (s != "6502ts" && s != "default") setInternal("tia.core", "6502ts");
#endif
}