mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Get rid of path_get_core_ptr
This commit is contained in:
parent
f80043adde
commit
1626439c3c
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
7
paths.c
7
paths.c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user