1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Get rid of path_get_core_ptr

This commit is contained in:
twinaphex 2016-10-03 15:46:07 +02:00
parent f80043adde
commit 1626439c3c
6 changed files with 4 additions and 15 deletions

View File

@ -677,7 +677,7 @@ static int populate_settings_path(settings_t *settings, struct config_path_setti
#endif
#ifndef HAVE_DYNAMIC
SETTING_PATH("libretro_path",
path_get_core_ptr(), false, NULL, false);
path_get_ptr(RARCH_PATH_CORE), false, NULL, false);
#endif
SETTING_PATH(
"screenshot_directory",

View File

@ -233,7 +233,7 @@ static void load_dynamic_core(void)
* saved to content history, and a relative path would
* break in that scenario. */
path_resolve_realpath(
path_get_core_ptr(),
path_get_ptr(RARCH_PATH_CORE),
path_get_core_size());
RARCH_LOG("Loading dynamic libretro core from: \"%s\"\n",

View File

@ -64,7 +64,7 @@ void main_exit(void *args)
#endif
frontend_driver_deinit(args);
frontend_driver_exitspawn(path_get_core_ptr(), path_get_core_size());
frontend_driver_exitspawn(path_get_ptr(RARCH_PATH_CORE), path_get_core_size());
rarch_ctl(RARCH_CTL_DESTROY, NULL);

View File

@ -2149,7 +2149,7 @@ static bool setting_append_list(
&subgroup_info,
parent_group);
(*list)[list_info->index - 1].size = path_get_core_size();
(*list)[list_info->index - 1].value.target.string = path_get_core_ptr();
(*list)[list_info->index - 1].value.target.string = path_get_ptr(RARCH_PATH_CORE);
(*list)[list_info->index - 1].values = ext_name;
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_LOAD_CORE);
settings_data_list_current_add_flags(list, list_info, SD_FLAG_BROWSER_ACTION);

View File

@ -444,13 +444,6 @@ void path_fill_names(void)
}
}
/* Core file path */
char *path_get_core_ptr(void)
{
return path_libretro;
}
char *path_get_ptr(enum rarch_path_type type)
{
switch (type)

View File

@ -70,10 +70,6 @@ void path_set_basename(const char *path);
size_t path_get_core_size(void);
/* get ptr functions */
char *path_get_core_ptr(void);
/* get list functions */
struct string_list *path_get_subsystem_list(void);