diff --git a/apple/common/main.m b/apple/common/main.m index db680102bd..95dc201fbf 100644 --- a/apple/common/main.m +++ b/apple/common/main.m @@ -42,7 +42,7 @@ void apple_run_core(int argc, char **argv, const char* core, strlcpy(core_path, core, sizeof(core_path)); strlcpy(config_path, g_defaults.config_path, sizeof(config_path)); - core_info_has_custom_config(core, config_path, sizeof(config_path)); + core_info_get_custom_config(core, config_path, sizeof(config_path)); static const char* const argv_game[] = { "retroarch", "-c", config_path, "-L", core_path, file_path, 0 }; static const char* const argv_menu[] = { "retroarch", "-c", config_path, "--menu", 0 }; diff --git a/apple/iOS/menu.m b/apple/iOS/menu.m index edeeaba491..3baff5d374 100644 --- a/apple/iOS/menu.m +++ b/apple/iOS/menu.m @@ -787,7 +787,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U rarch_setting_t *setting_data, *setting; NSMutableArray* settings; - _isCustom = core_info_has_custom_config(core.UTF8String, buffer, sizeof(buffer)); + _isCustom = core_info_get_custom_config(core.UTF8String, buffer, sizeof(buffer)); if (_isCustom) { const core_info_t *tmp = (const core_info_t*)core_info_list_get_by_id(core.UTF8String); @@ -925,7 +925,7 @@ static void RunActionSheet(const char* title, const struct string_list* items, U char path[PATH_MAX]; NSString* core_id = BOXSTRING(core_list->list[i].path); - if (core_info_has_custom_config(core_id.UTF8String, path, sizeof(path))) + if (core_info_get_custom_config(core_id.UTF8String, path, sizeof(path))) { [cores addObject:[RAMenuItemBasic itemWithDescription:BOXSTRING(core_list->list[i].display_name) association:core_id @@ -979,7 +979,7 @@ static bool copy_config(const char *src_path, const char *dst_path) action:^(NSString* core) { char path[PATH_MAX]; - if (!core_info_has_custom_config(core.UTF8String, path, sizeof(path))) + if (!core_info_get_custom_config(core.UTF8String, path, sizeof(path))) { if (g_defaults.config_path[0] != '\0' && path[0] != '\0') { diff --git a/core_info.c b/core_info.c index 2e872ab28e..16c8e87acc 100644 --- a/core_info.c +++ b/core_info.c @@ -456,7 +456,7 @@ const core_info_t *core_info_list_get_by_id(const char *core_id) return NULL; } -bool core_info_has_custom_config(const char *core_id, +bool core_info_get_custom_config(const char *core_id, char *buf, size_t sizeof_buf) { if (!core_id || !buf || !sizeof_buf) diff --git a/core_info.h b/core_info.h index d6a4807d43..74bd7b8bd9 100644 --- a/core_info.h +++ b/core_info.h @@ -92,7 +92,7 @@ void core_info_set_core_path(void); core_info_list_t *core_info_list_get(void); const core_info_t *core_info_list_get_by_id(const char *core_id); -bool core_info_has_custom_config(const char *core_id, char *buf, size_t sizeof_buf); +bool core_info_get_custom_config(const char *core_id, char *buf, size_t sizeof_buf); #ifdef __cplusplus }