mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(iOS CocoaTouch) Use menu_entry_get_path
This commit is contained in:
parent
a1c4446f24
commit
bae7bc806c
@ -111,7 +111,7 @@ static void RunActionSheet(const char* title, const struct string_list* items,
|
|||||||
result = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
|
result = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
|
||||||
reuseIdentifier:cell_id];
|
reuseIdentifier:cell_id];
|
||||||
|
|
||||||
menu_entry_get_label(self.i, label, sizeof(label));
|
menu_entry_get_path(self.i, label, sizeof(label));
|
||||||
menu_entry_get_value(self.i, buffer, sizeof(buffer));
|
menu_entry_get_value(self.i, buffer, sizeof(buffer));
|
||||||
|
|
||||||
result.selectionStyle = UITableViewCellSelectionStyleNone;
|
result.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||||
@ -150,7 +150,7 @@ static void RunActionSheet(const char* title, const struct string_list* items,
|
|||||||
result.accessoryView = [UISwitch new];
|
result.accessoryView = [UISwitch new];
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_entry_get_label(self.i, label, sizeof(label));
|
menu_entry_get_path(self.i, label, sizeof(label));
|
||||||
|
|
||||||
result.textLabel.text = BOXSTRING(label);
|
result.textLabel.text = BOXSTRING(label);
|
||||||
[(id)result.accessoryView removeTarget:nil
|
[(id)result.accessoryView removeTarget:nil
|
||||||
@ -199,7 +199,7 @@ static void RunActionSheet(const char* title, const struct string_list* items,
|
|||||||
char label[PATH_MAX_LENGTH];
|
char label[PATH_MAX_LENGTH];
|
||||||
RAMenuItemEnum __weak* weakSelf = self;
|
RAMenuItemEnum __weak* weakSelf = self;
|
||||||
|
|
||||||
menu_entry_get_label(self.i, label, sizeof(label));
|
menu_entry_get_path(self.i, label, sizeof(label));
|
||||||
items = menu_entry_enum_values(self.i);
|
items = menu_entry_enum_values(self.i);
|
||||||
|
|
||||||
RunActionSheet(label, items, self.parentTable,
|
RunActionSheet(label, items, self.parentTable,
|
||||||
@ -228,7 +228,7 @@ static void RunActionSheet(const char* title, const struct string_list* items,
|
|||||||
{
|
{
|
||||||
char label[PATH_MAX_LENGTH];
|
char label[PATH_MAX_LENGTH];
|
||||||
|
|
||||||
menu_entry_get_label(self.i, label, sizeof(label));
|
menu_entry_get_path(self.i, label, sizeof(label));
|
||||||
|
|
||||||
self.alert = [[UIAlertView alloc]
|
self.alert = [[UIAlertView alloc]
|
||||||
initWithTitle:BOXSTRING("RetroArch")
|
initWithTitle:BOXSTRING("RetroArch")
|
||||||
@ -453,7 +453,7 @@ replacementString:(NSString *)string
|
|||||||
UIAlertView *alertView;
|
UIAlertView *alertView;
|
||||||
UITextField *field;
|
UITextField *field;
|
||||||
|
|
||||||
menu_entry_get_label(self.i, label, sizeof(label));
|
menu_entry_get_path(self.i, label, sizeof(label));
|
||||||
|
|
||||||
desc = BOXSTRING(label);
|
desc = BOXSTRING(label);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user