git.y1.nz

SameBoy

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

commit 641f26e13e2faaf443dbae5b25c1fb5e362738f5
parent 8073e3d39ec17a4c9a94700bf4235f65edb15682
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Fri, 25 Feb 2022 14:29:21 +0200

Fix serial close behavior

Diffstat:
MCocoa/Document.m3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -453,7 +453,6 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) - (void) run { assert(!master); - running = true; [self preRun]; if (slave) { [slave preRun]; @@ -532,6 +531,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) return; } if (running) return; + running = true; [[[NSThread alloc] initWithTarget:self selector:@selector(run) object:nil] start]; } @@ -2065,6 +2065,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency) bool wasRunning = self->running; Document *partner = master ?: slave; if (partner) { + wasRunning |= partner->running; [self stop]; partner->master = nil; partner->slave = nil;

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