mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 16:08:52 +01:00
remove sdl.Main()
This commit is contained in:
parent
261702bc62
commit
0fe6399441
2
go.mod
2
go.mod
@ -3,7 +3,7 @@ module github.com/clockworkpi/LauncherGoDev
|
|||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/cuu/gogame v0.0.0-20211009161157-9fc102a958ec
|
github.com/cuu/gogame v0.0.0-20211011051747-74f98678cdcc
|
||||||
github.com/cuu/grab v2.0.0+incompatible
|
github.com/cuu/grab v2.0.0+incompatible
|
||||||
github.com/cuu/wpa-connect v1.5.4
|
github.com/cuu/wpa-connect v1.5.4
|
||||||
github.com/fatih/structs v1.1.0
|
github.com/fatih/structs v1.1.0
|
||||||
|
|||||||
4
go.sum
4
go.sum
@ -1,5 +1,5 @@
|
|||||||
github.com/cuu/gogame v0.0.0-20211009161157-9fc102a958ec h1:0nBshSvDcFFRNlWCfCkRte1SfhhKxsdK2SeWBHgmLVg=
|
github.com/cuu/gogame v0.0.0-20211011051747-74f98678cdcc h1:NEA4pzpJE2vUh7XudUwKTJ08VnvFuWsnMkIPRlbi2XM=
|
||||||
github.com/cuu/gogame v0.0.0-20211009161157-9fc102a958ec/go.mod h1:1ZGiLH+shrG0St33RrS7HWw8aTUezakhQcM/uzvjUiA=
|
github.com/cuu/gogame v0.0.0-20211011051747-74f98678cdcc/go.mod h1:1ZGiLH+shrG0St33RrS7HWw8aTUezakhQcM/uzvjUiA=
|
||||||
github.com/cuu/grab v2.0.0+incompatible h1:iXzIujTt9fYkjw63Tlxyxw1ohvabE59jWgkzI4LUY6E=
|
github.com/cuu/grab v2.0.0+incompatible h1:iXzIujTt9fYkjw63Tlxyxw1ohvabE59jWgkzI4LUY6E=
|
||||||
github.com/cuu/grab v2.0.0+incompatible/go.mod h1:FQIc8xU5/Uw5lfVeVv4hrrclKgc+6c0ALOYVaTS+R20=
|
github.com/cuu/grab v2.0.0+incompatible/go.mod h1:FQIc8xU5/Uw5lfVeVv4hrrclKgc+6c0ALOYVaTS+R20=
|
||||||
github.com/cuu/wpa-connect v1.5.4 h1:pn9Gi34OSaYuFjrlG+hXUQ2GZHcP2hy5lqk0kSL3VXQ=
|
github.com/cuu/wpa-connect v1.5.4 h1:pn9Gi34OSaYuFjrlG+hXUQ2GZHcP2hy5lqk0kSL3VXQ=
|
||||||
|
|||||||
3
main.go
3
main.go
@ -496,14 +496,13 @@ func run() int {
|
|||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
var exitcode int
|
var exitcode int
|
||||||
|
defer sdl.Quit()
|
||||||
|
|
||||||
//runtime.GOMAXPROCS(1)
|
//runtime.GOMAXPROCS(1)
|
||||||
|
|
||||||
os.Setenv("SDL_VIDEO_CENTERED","1")
|
os.Setenv("SDL_VIDEO_CENTERED","1")
|
||||||
|
|
||||||
sdl.Main(func() {
|
|
||||||
exitcode = run()
|
exitcode = run()
|
||||||
})
|
|
||||||
|
|
||||||
os.Exit(exitcode)
|
os.Exit(exitcode)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user