mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 21:20:06 +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
|
- (void) updateRewindLength
|
||||||
{
|
{
|
||||||
|
[self performAtomicBlock:^{
|
||||||
if (GB_is_inited(&gb)) {
|
if (GB_is_inited(&gb)) {
|
||||||
GB_set_rewind_length(&gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBRewindLength"]);
|
GB_set_rewind_length(&gb, [[NSUserDefaults standardUserDefaults] integerForKey:@"GBRewindLength"]);
|
||||||
}
|
}
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user