git.y1.nz

SameBoy

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

commit 8f21c8ed669e0309114684ac38712d6d97e88374
parent 3ad28b7a8dad52ac8db78f72752b75ea3523b8a2
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Wed,  2 Apr 2025 23:42:37 +0300

Fixed a bug that caused ROMs to run without a window upon changing an emulated revision

Diffstat:
MCocoa/Document.m6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cocoa/Document.m b/Cocoa/Document.m @@ -317,7 +317,7 @@ static void debuggerReloadCallback(GB_gameboy_t *gb) GB_set_border_mode(&_gb, (GB_border_mode_t) [[NSUserDefaults standardUserDefaults] integerForKey:@"GBBorderMode"]); [self observeStandardDefaultsKey:@"GBBorderMode" withBlock:^(NSNumber *value) { - _borderModeChanged = true; + weakSelf->_borderModeChanged = true; }]; [self observeStandardDefaultsKey:@"GBHighpassFilter" withBlock:^(NSNumber *value) { @@ -339,11 +339,11 @@ static void debuggerReloadCallback(GB_gameboy_t *gb) }]; [self observeStandardDefaultsKey:@"GBDebuggerFont" withBlock:^(NSString *value) { - [self updateFonts]; + [weakSelf updateFonts]; }]; [self observeStandardDefaultsKey:@"GBDebuggerFontSize" withBlock:^(NSString *value) { - [self updateFonts]; + [weakSelf updateFonts]; }]; }

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