-
Notifications
You must be signed in to change notification settings - Fork 20
/
defunct.go
69 lines (65 loc) · 1.97 KB
/
defunct.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// 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",
"plusrom.id", // replaced with plusrom.id_v2.1.1
}
// 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
}