mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-28 20:10:09 +02:00
Fixed a crash that happened when changing the rewind length in Cocoa
This commit is contained in:
@@ -1411,9 +1411,11 @@ static void printImage(GB_gameboy_t *gb, uint32_t *image, uint8_t height,
|
||||
|
||||
- (void) updateRewindLength
|
||||
{
|
||||
if (GB_is_inited(&gb)) {
|
||||
GB_set_rewind_length(&gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBRewindLength"]);
|
||||
}
|
||||
[self performAtomicBlock:^{
|
||||
if (GB_is_inited(&gb)) {
|
||||
GB_set_rewind_length(&gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBRewindLength"]);
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user