mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-06-02 12:08:01 -04:00
d32262adff
debugger no longer sends play, pause notifications to the gui. the gui polls for that information as required govern package now has SubState type to complement the State type. StateIntegrity() function enforces combinations of State and SubState, called from debugger.setState() function playmode notifications reworked and contained in a single playmode_overlay.go file. this includes the FPS and screen detail preference value sdlimgui.playmode.fpsOverlay replaced with sdlimgui.playmode.fpsDetail. still toggled with F7 key coproc icon moved to top-left corner of playmode overlay and only visible when FPS detail is showing when FPS detail is showing multiple (small) icons care shown. when it is not showing, a single (large) icon is shown according to the priority of the icon. eg. pause indicator has higher priority than the mute indicator
82 lines
2.3 KiB
Go
82 lines
2.3 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",
|
|
}
|
|
|
|
// 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
|
|
}
|