mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 18:32:49 +01:00
PluginConfig
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user