mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(iOS/CocoaTouch) Set Resume on righthand side
This commit is contained in:
parent
64495ea0e5
commit
76011a9781
@ -742,8 +742,8 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
||||
[self set_leftbutton:BOXSTRING("Back")
|
||||
target:weakSelf
|
||||
action:@selector(menuBack)];
|
||||
else
|
||||
[self set_leftbutton:BOXSTRING("Resume")
|
||||
|
||||
[self set_rightbutton:BOXSTRING("Resume")
|
||||
target:[RetroArch_iOS get]
|
||||
action:@selector(showGameView)];
|
||||
|
||||
@ -761,6 +761,16 @@ static void RunActionSheet(const char* title, const struct string_list* items, U
|
||||
action:action];
|
||||
}
|
||||
|
||||
- (void) set_rightbutton:(NSString *)title target:(id)target action:(SEL)action
|
||||
{
|
||||
self.navigationItem.rightBarButtonItem =
|
||||
[[UIBarButtonItem alloc]
|
||||
initWithTitle:title
|
||||
style:UIBarButtonItemStyleBordered
|
||||
target:target
|
||||
action:action];
|
||||
}
|
||||
|
||||
// JM: This could go down into RA
|
||||
void get_core_title(char *title_msg, size_t title_msg_len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user