Compatible with launcher's action.config

This commit is contained in:
cuu
2019-06-18 17:03:45 +08:00
parent 37ae53db27
commit 0db31341e1
12 changed files with 56 additions and 41 deletions

View File

@@ -12,6 +12,7 @@ import (
"strconv"
"syscall"
"os/exec"
"runtime"
"github.com/cuu/gogame/display"
@@ -260,6 +261,16 @@ func System(cmd string) string {
return ret
}
func ArmSystem(cmd string) string {
if strings.Contains(runtime.GOARCH,"arm") == true {
return System(cmd)
}else {
return ""
}
}
func SystemTrim(cmd string) string {
ret := ""
out,err := exec.Command("bash","-c",cmd).Output()