Gopher2600/prefs/defunct.go
JetSetIlly fa2866c45d sdlimgui preferences correctly initialised on first use
this fix is very important because without it, the frame queue is set to
zero. this means that the display is likely to be very choppy creating
a bad impression of the emulator for first time users
2024-05-05 17:00:38 +01:00

88 lines
2.5 KiB
Go

// This file is part of Gopher2600.
//
// Gopher2600 is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Gopher2600 is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Gopher2600. If not, see <https://www.gnu.org/licenses/>.
package prefs
// list of preference values that are no longer used.
var defunct = []string{
"debugger.randpins",
"debugger.randstate",
"hardware.instantARM",
"sdlimgui.playmode.terminalOnError",
"crt.inputGamma",
"crt.outputGamma",
"crt.maskScanlineScaling",
"crt.phosphorSpeed",
"crt.blur",
"crt.blurLevel",
"crt.vignette",
"crt.maskBright",
"crt.maskBrightness",
"crt.scanlinesBright",
"crt.scanlinesBrightness",
"hardware.arm7.allowMAMfromThumb",
"hardware.arm7.flashAccessTime",
"hardware.arm7.flashAccessTime1",
"hardware.arm7.sramAccessTime",
"hardware.arm7.defaultMAM",
"tia.revision.hmove.ripplestart",
"tia.revision.hmove.rippleend",
"sdlimgui.playmode.windowsize",
"sdlimgui.playmode.windowpos",
"sdlimgui.playmode.windowSize",
"sdlimgui.playmode.windowPos",
"sdlimgui.playmode.audioEnabled",
"sdlimgui.debugger.windowSize",
"sdlimgui.debugger.windowPos",
"sdlimgui.debugger.audioEnabled",
"crt.unsyncTolerance",
"crt.syncSpeedScanlines",
"hiscore.authtoken",
"hiscore.server",
"hardware.arm7.flashLatency",
"sdlimgui.display.fastSync",
"sdlimgui.glswapinterval",
"hardware.arm7.abortOnIllegalMem",
"hardware.arm7.abortOnStackCollision",
"hardware.arm7.extendedMemoryErrorLogging",
"plusrom.id", // replaced with plusrom.id_v2.1.1
"crt.noise",
"crt.noiseLevel",
"sdlimgui.fonts.gui",
"sdlimgui.fonts.terminal",
"sdlimgui.fonts.code",
"crt.syncPowerOn",
"crt.syncSpeed",
"crt.syncSensitivity",
"sdlimgui.playmode.coprocDevNotification",
"sdlimgui.playmode.fpsOverlay",
"crt.brightness",
"crt.contrast",
"crt.hue",
"crt.saturation",
"sdlimgui.display.frameQueue",
"sdlimgui.display.frameQueueAuto",
}
// returns true if string is in list of defunct values.
func isDefunct(s string) bool {
for _, m := range defunct {
if s == m {
return true
}
}
return false
}