git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 36149dfa9f74288ebd905278c30ae0fc508b5b9a
parent 4649cdd29075507b8ef94786d2a5ee5a5bc2c912
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed, 19 Oct 2022 22:54:54 +0300

Don't crash on invalid GameShark/Genie codes

Diffstat:
MCocoa/GBCheatWindowController.m6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Cocoa/GBCheatWindowController.m b/Cocoa/GBCheatWindowController.m @@ -98,8 +98,10 @@ [self tableViewSelectionDidChange:nil]; } else { - NSBeep(); - [GBWarningPopover popoverWithContents:@"This code is not a valid GameShark or GameGenie code" onView:self.importCodeField]; + dispatch_async(dispatch_get_main_queue(), ^{ + NSBeep(); + [GBWarningPopover popoverWithContents:@"This code is not a valid GameShark or GameGenie code" onView:self.importCodeField]; + }); } }]; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.