PluginConfig

This commit is contained in:
cuu
2018-09-10 15:41:01 +08:00
parent 3c0884c2d7
commit a1f49ad1d9
4 changed files with 71 additions and 6 deletions

View File

@@ -5,12 +5,31 @@ import (
"log"
"path/filepath"
"strings"
"fmt"
"github.com/cuu/gogame/display"
"github.com/cuu/LauncherGo/sysgo"
)
func ShowErr(e error) {
if e != nil {
fmt.Println(e)
}
}
func Assert(e error) {
if e != nil {
log.Fatal("Assert: " , e)
}
}
func CheckAndPanic(e error) {
if e != nil {
panic(e)
}
}
func Abs(n int) int {
y := n >> 63
return (n ^ y) - y