(iOS/CocoaTouch) Set Resume on righthand side

This commit is contained in:
Twinaphex 2015-05-07 10:32:42 +02:00
parent 64495ea0e5
commit 76011a9781

View File

@ -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)
{