mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 13:34:36 +02:00
remove all init() in UI, move into UI.Init()
This commit is contained in:
5
main.go
5
main.go
@@ -269,7 +269,6 @@ func run() int {
|
||||
screen := display.SetMode(int32(UI.Width),int32(UI.Height),0,32)
|
||||
|
||||
UI.Init()
|
||||
UI.MyIconPool.Init()
|
||||
|
||||
PreparationInAdv()
|
||||
|
||||
@@ -448,7 +447,9 @@ func run() int {
|
||||
func main() {
|
||||
|
||||
var exitcode int
|
||||
|
||||
|
||||
runtime.GOMAXPROCS(1)
|
||||
|
||||
os.Setenv("SDL_VIDEO_CENTERED","1")
|
||||
|
||||
sdl.Main(func() {
|
||||
|
||||
Reference in New Issue
Block a user