diff --git a/configuration.c b/configuration.c index ae9e09b20e..8e20f93a67 100644 --- a/configuration.c +++ b/configuration.c @@ -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", diff --git a/dynamic.c b/dynamic.c index 5d37d3eb3a..043e0637c0 100644 --- a/dynamic.c +++ b/dynamic.c @@ -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", diff --git a/frontend/frontend.c b/frontend/frontend.c index 176ca7082e..24492acc11 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -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); diff --git a/menu/menu_setting.c b/menu/menu_setting.c index cc8bce1ef7..0b537ac4c3 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -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); diff --git a/paths.c b/paths.c index 90e4269685..42c200320f 100644 --- a/paths.c +++ b/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) diff --git a/paths.h b/paths.h index ad7efe9dce..3b018ff390 100644 --- a/paths.h +++ b/paths.h @@ -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);