Add basic N64 support on Mac (#205)

Note: mupen64plus lib unload is not working properly on Mac, so stopping and restarting N64 emulation will cause a crash
This commit is contained in:
88hcsif 2020-06-25 15:46:12 +01:00 committed by GitHub
parent 5f653de602
commit c23347db08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 12 deletions

View file

@ -7,15 +7,15 @@ import (
"os/signal"
"time"
"github.com/faiface/mainthread"
config "github.com/giongto35/cloud-game/pkg/config/worker"
"github.com/giongto35/cloud-game/pkg/util/logging"
"github.com/giongto35/cloud-game/pkg/worker"
"github.com/golang/glog"
"github.com/spf13/pflag"
)
func main() {
func run() {
rand.Seed(time.Now().UTC().UnixNano())
cfg := config.NewDefaultConfig()
@ -43,3 +43,8 @@ func main() {
cancelCtx()
}
}
func main() {
// enables mainthread package and runs run in a separate goroutine
mainthread.Run(run)
}