mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 10:52:52 +01:00
counter screen and interval checking in main.go
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package sysgo
|
||||
|
||||
type PowerLevel struct {
|
||||
Dim int
|
||||
Close int
|
||||
PowerOff int
|
||||
}
|
||||
|
||||
var PowerLevels map[string]*PowerLevel
|
||||
|
||||
var (
|
||||
CurKeySet = "GameShell" // PC or GameShell
|
||||
DontLeave = false
|
||||
@@ -9,8 +17,24 @@ var (
|
||||
|
||||
UPDATE_URL="https://raw.githubusercontent.com/cuu/CPI/master/launchergo_ver.json"
|
||||
|
||||
VERSION="stable 1.22"
|
||||
VERSION="0.22"
|
||||
|
||||
SKIN="default"
|
||||
|
||||
//load from dot files
|
||||
CurPowerLevel= "performance"
|
||||
Lang = "English"
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
func init() {
|
||||
if PowerLevels == nil {
|
||||
PowerLevels = make(map[string]*PowerLevel)
|
||||
PowerLevels["supersaving"] = &PowerLevel{10, 30, 120}
|
||||
PowerLevels["powersaving"] = &PowerLevel{40, 120, 300}
|
||||
PowerLevels["server"] = &PowerLevel{40, 120, 0 }
|
||||
PowerLevels["performance"] = &PowerLevel{40, 0, 0 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user