Skip to content

Commit

Permalink
fix os thread
Browse files Browse the repository at this point in the history
  • Loading branch information
ichirin2501 committed Jan 8, 2024
1 parent 6c932d9 commit 48b79c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/rgnes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"image"
"image/color"
"os"
"runtime"
"time"

"fyne.io/fyne/v2"
Expand All @@ -17,6 +18,10 @@ import (
"github.com/ichirin2501/rgnes/nes"
)

func init() {
runtime.LockOSThread()
}

func main() {
if err := realMain(); err != nil {
fmt.Fprintln(os.Stderr, err)
Expand Down

0 comments on commit 48b79c5

Please sign in to comment.