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