Don't panic

This commit is contained in:
Ivan Izaguirre 2020-09-23 18:09:18 +02:00
parent 8e109720e6
commit 10d2551b36
1 changed files with 6 additions and 6 deletions

View File

@ -12,13 +12,13 @@ import (
func main() {
a := apple2.MainApple()
if a.IsProfiling() {
// See the log with:
// go tool pprof --pdf ~/go/bin/apple2sdl /tmp/profile329536248/cpu.pprof > profile.pdf
defer profile.Start().Stop()
}
if a != nil {
if a.IsProfiling() {
// See the log with:
// go tool pprof --pdf ~/go/bin/apple2sdl /tmp/profile329536248/cpu.pprof > profile.pdf
defer profile.Start().Stop()
}
SDLRun(a)
}
}