From 78f4d2a3d6044f7cde8c5491b08a9b7bf19d7f90 Mon Sep 17 00:00:00 2001 From: Jay McCarthy Date: Thu, 5 Feb 2015 05:09:06 -0500 Subject: [PATCH] Fixing iOS build --- apple/iOS/menu.m | 15 +++++++++------ settings_data.h | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apple/iOS/menu.m b/apple/iOS/menu.m index 08611a7209..cf56bc5fb3 100644 --- a/apple/iOS/menu.m +++ b/apple/iOS/menu.m @@ -656,12 +656,15 @@ static void RunActionSheet(const char* title, const struct string_list* items, U cbs = (menu_file_list_cbs_t*)menu_list_get_actiondata_at_offset( driver.menu->menu_list->selection_buf, i); - disp_set_label - (driver.menu->menu_list->selection_buf, &w, type, i, label, - type_str, sizeof(type_str), - entry_label, path, - path_buf, sizeof(path_buf)); - + if (cbs && cbs->action_get_representation) { + cbs->action_get_representation + (driver.menu->menu_list->selection_buf, + &w, type, i, label, + type_str, sizeof(type_str), + entry_label, path, + path_buf, sizeof(path_buf)); + } + if (setting && setting->type == ST_ACTION && setting->flags & SD_FLAG_BROWSER_ACTION && setting->action_toggle && diff --git a/settings_data.h b/settings_data.h index 3a8ce9dbad..c227b4659d 100644 --- a/settings_data.h +++ b/settings_data.h @@ -18,6 +18,7 @@ #define __RARCH_SETTINGS_DATA_H__ #include +#include #include #include #include "settings_list.h"