combine all code into a single binary

This commit is contained in:
cuu
2018-12-08 22:43:20 +08:00
parent 1826b16bee
commit 6ef7260d1f
9 changed files with 190 additions and 141 deletions

View File

@@ -11,7 +11,7 @@ import (
"runtime"
"path/filepath"
"os/exec"
//"encoding/json"
gotime "time"
"github.com/veandco/go-sdl2/sdl"
"github.com/cuu/gogame"
@@ -24,6 +24,8 @@ import (
"github.com/cuu/LauncherGoDev/sysgo"
"github.com/cuu/LauncherGoDev/sysgo/UI"
)
var (
@@ -35,6 +37,7 @@ var (
everytime_keydown = gotime.Now()
)
// flash the Led1 on the GS back
func FlashLed1(main_screen *UI.MainScreen) {
@@ -253,7 +256,8 @@ func run() int {
main_screen.TitleBar = title_bar
main_screen.FootBar = foot_bar
main_screen.ReadTheDirIntoPages("Menu",0,nil)
ReadTheDirIntoPages(main_screen,"Menu",0,nil)
main_screen.FartherPages()
main_screen.Draw()