Skip to content

Commit

Permalink
Add fullscreen flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kivutar committed Dec 27, 2018
1 parent 0153385 commit 6a388d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ func runLoop(vid *video.Video) {

func main() {
var GLVersion uint
var fullscreen bool
flag.StringVar(&state.Global.CorePath, "L", "", "Path to the libretro core")
flag.BoolVar(&state.Global.Verbose, "v", false, "Verbose logs")
flag.UintVar(&GLVersion, "glver", 32, "OpenGL version")
flag.BoolVar(&fullscreen, "fullscreen", false, "Force starting in full screen mode")
flag.Parse()
args := flag.Args()

Expand All @@ -81,6 +83,11 @@ func main() {
settings.Save()
}

if fullscreen {
settings.Settings.VideoFullscreen = fullscreen
settings.Save()
}

if err := glfw.Init(); err != nil {
log.Fatalln("failed to initialize glfw:", err)
}
Expand Down

0 comments on commit 6a388d4

Please sign in to comment.