mirror of
https://github.com/libretro/RetroArch
synced 2025-02-15 00:40:06 +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
|
#endif
|
||||||
#ifndef HAVE_DYNAMIC
|
#ifndef HAVE_DYNAMIC
|
||||||
SETTING_PATH("libretro_path",
|
SETTING_PATH("libretro_path",
|
||||||
path_get_core_ptr(), false, NULL, false);
|
path_get_ptr(RARCH_PATH_CORE), false, NULL, false);
|
||||||
#endif
|
#endif
|
||||||
SETTING_PATH(
|
SETTING_PATH(
|
||||||
"screenshot_directory",
|
"screenshot_directory",
|
||||||
|
@ -233,7 +233,7 @@ static void load_dynamic_core(void)
|
|||||||
* saved to content history, and a relative path would
|
* saved to content history, and a relative path would
|
||||||
* break in that scenario. */
|
* break in that scenario. */
|
||||||
path_resolve_realpath(
|
path_resolve_realpath(
|
||||||
path_get_core_ptr(),
|
path_get_ptr(RARCH_PATH_CORE),
|
||||||
path_get_core_size());
|
path_get_core_size());
|
||||||
|
|
||||||
RARCH_LOG("Loading dynamic libretro core from: \"%s\"\n",
|
RARCH_LOG("Loading dynamic libretro core from: \"%s\"\n",
|
||||||
|
@ -64,7 +64,7 @@ void main_exit(void *args)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
frontend_driver_deinit(args);
|
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);
|
rarch_ctl(RARCH_CTL_DESTROY, NULL);
|
||||||
|
|
||||||
|
@ -2149,7 +2149,7 @@ static bool setting_append_list(
|
|||||||
&subgroup_info,
|
&subgroup_info,
|
||||||
parent_group);
|
parent_group);
|
||||||
(*list)[list_info->index - 1].size = path_get_core_size();
|
(*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;
|
(*list)[list_info->index - 1].values = ext_name;
|
||||||
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_LOAD_CORE);
|
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);
|
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)
|
char *path_get_ptr(enum rarch_path_type type)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
|
4
paths.h
4
paths.h
@ -70,10 +70,6 @@ void path_set_basename(const char *path);
|
|||||||
|
|
||||||
size_t path_get_core_size(void);
|
size_t path_get_core_size(void);
|
||||||
|
|
||||||
/* get ptr functions */
|
|
||||||
|
|
||||||
char *path_get_core_ptr(void);
|
|
||||||
|
|
||||||
/* get list functions */
|
/* get list functions */
|
||||||
|
|
||||||
struct string_list *path_get_subsystem_list(void);
|
struct string_list *path_get_subsystem_list(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user