-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.go
47 lines (44 loc) · 1.17 KB
/
config.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
package main
type ConfigParam struct {
WideScreen bool `json:"wideScreen"`
AutoLogin bool `json:"autoLogin"`
Preload bool `json:"preload"`
Windowed bool `json:"windowed"`
Seasons bool `json:"seasons"`
Graphics bool `json:"graphics"`
ShitPc bool `json:"shitPc"`
CefDirtyRects bool `json:"cefDirtyRects"`
AuthCef bool `json:"authCef"`
Grass bool `json:"grass"`
OldResolution bool `json:"oldResolution"`
HdrResolution bool `json:"hdrResolution"`
}
type Config struct {
Name string `json:"name"`
Path string `json:"path"`
Memory int `json:"memory"`
SelectedServer int `json:"selectedServer"`
Params ConfigParam `json:"params"`
}
/*
var defaultConfig Config = Config{
Name: "",
Path: "",
Memory: 4096,
SelectedServer: 1,
Params: ConfigParam{
WideScreen: true,
AutoLogin: false,
Preload: true,
Windowed: false,
Seasons: false,
Graphics: false,
ShitPc: false,
CefDirtyRects: false,
AuthCef: true,
Grass: false,
OldResolution: false,
HdrResolution: false,
},
}
*/