mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #9563 from yoshisuga/fix-main-thread-call
iOS: #9562: wrap call to get app delegate around a gcd main thread async call
This commit is contained in:
commit
875ff0e28c
@ -168,7 +168,9 @@ void *glkitview_init(void);
|
||||
|
||||
#elif TARGET_OS_IOS
|
||||
-(void) showNativeMenu {
|
||||
[[RetroArch_iOS get] toggleUI];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[[RetroArch_iOS get] toggleUI];
|
||||
});
|
||||
}
|
||||
|
||||
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures
|
||||
|
@ -717,9 +717,11 @@ didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
target:weakSelf
|
||||
action:@selector(menuBack)];
|
||||
|
||||
[self set_rightbutton:BOXSTRING("Switch")
|
||||
target:[RetroArch_iOS get]
|
||||
action:@selector(showGameView)];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self set_rightbutton:BOXSTRING("Switch")
|
||||
target:[RetroArch_iOS get]
|
||||
action:@selector(showGameView)];
|
||||
});
|
||||
}
|
||||
|
||||
- (void) set_leftbutton:(NSString *)title target:(id)target action:(SEL)action
|
||||
|
Loading…
x
Reference in New Issue
Block a user