mirror of https://github.com/digarok/Appy.git
23 lines
227 B
Go
23 lines
227 B
Go
|
package core
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
const emulatorPath = "gsplus"
|
||
|
|
||
|
func Run() {
|
||
|
fmt.Println("Running an emulator")
|
||
|
|
||
|
cmd := exec.Command(emulatorPath)
|
||
|
|
||
|
err := cmd.Run()
|
||
|
|
||
|
if err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
|
||
|
}
|