Rename core_info_has_custom_config to core_info_get_custom_config

This commit is contained in:
twinaphex 2014-08-18 13:01:31 +02:00
parent 86de91d718
commit 72e556083c
4 changed files with 6 additions and 6 deletions

View File

@ -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 };

View File

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

View File

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

View File

@ -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
}