mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Fixed a bug that caused ROMs to run without a window upon changing an emulated revision
This commit is contained in:
+3
-3
@@ -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];
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user