From 6917a21f385a64d13b8ce26c84e782d7175662a7 Mon Sep 17 00:00:00 2001 From: Ivan Izaguirre Date: Sat, 19 Oct 2019 19:56:51 +0200 Subject: [PATCH] Add the -profile option --- apple2sdl/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/apple2sdl/main.go b/apple2sdl/main.go index 4166e64..5c81b4b 100644 --- a/apple2sdl/main.go +++ b/apple2sdl/main.go @@ -43,6 +43,7 @@ func SDLRun(a *apple2.Apple2) { for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() { switch t := event.(type) { case *sdl.QuitEvent: + a.SendCommand(apple2.CommandKill) running = false case *sdl.KeyboardEvent: //fmt.Printf("[%d ms] Keyboard\ttype:%d\tsym:%c\tmodifiers:%d\tstate:%d\trepeat:%d\n",