Skip to content

Commit

Permalink
Try to quit debug window better
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Sep 20, 2024
1 parent a548e5d commit 9acc6f3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyboy/plugins/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,14 @@ def handle_events(self, events):
return events

def stop(self):
if self.sdl2_event_pump:
sdl2.SDL_Quit()
self.tile1.stop()
self.tile2.stop()
self.tiledata0.stop()
if self.cgb:
self.tiledata1.stop()
self.sprite.stop()
self.spriteview.stop()
self.memory.stop()

def enabled(self):
if self.pyboy_argv.get("debug"):
Expand Down

0 comments on commit 9acc6f3

Please sign in to comment.