We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0153385 commit 6a388d4Copy full SHA for 6a388d4
1 file changed
main.go
@@ -63,9 +63,11 @@ func runLoop(vid *video.Video) {
63
64
func main() {
65
var GLVersion uint
66
+ var fullscreen bool
67
flag.StringVar(&state.Global.CorePath, "L", "", "Path to the libretro core")
68
flag.BoolVar(&state.Global.Verbose, "v", false, "Verbose logs")
69
flag.UintVar(&GLVersion, "glver", 32, "OpenGL version")
70
+ flag.BoolVar(&fullscreen, "fullscreen", false, "Force starting in full screen mode")
71
flag.Parse()
72
args := flag.Args()
73
@@ -81,6 +83,11 @@ func main() {
81
83
settings.Save()
82
84
}
85
86
+ if fullscreen {
87
+ settings.Settings.VideoFullscreen = fullscreen
88
+ settings.Save()
89
+ }
90
+
91
if err := glfw.Init(); err != nil {
92
log.Fatalln("failed to initialize glfw:", err)
93
0 commit comments