git.y1.nz

SameBoy

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

commit 9c13590f30996b4fd827d7239ed19202f0883ac4
parent 0c81f362697f77b65b52ff259786694980d134b9
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sun, 21 Jan 2024 13:40:12 +0200

Allow hot-swapping a ROM into itself, fixes #512

Diffstat:
MCocoa/Document.m1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -2674,6 +2674,7 @@ enum GBWindowResizeAction if (urls.count == 1) { bool ok = true; for (Document *document in [NSDocumentController sharedDocumentController].documents) { + if (document == self) continue; if ([document.fileURL isEqual:urls.firstObject]) { NSAlert *alert = [[NSAlert alloc] init]; [alert setMessageText:[NSString stringWithFormat:@"‘%@’ is already open in another window. Close ‘%@’ before hot swapping it into this instance.",

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