mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
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:
parent
5f653de602
commit
c23347db08
5 changed files with 33 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue