From d521edd86ac18424e770a56763622a56b115367e Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 5 Aug 2012 07:43:37 +0200 Subject: [PATCH] (libretro mgmt) Get rid of rarch_configure_libretro function --- console/rarch_console_libretro_mgmt.c | 11 ----------- console/rarch_console_libretro_mgmt.h | 1 - ps3/frontend/main.c | 6 +++++- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/console/rarch_console_libretro_mgmt.c b/console/rarch_console_libretro_mgmt.c index 684a7c8b63..0fd5416737 100644 --- a/console/rarch_console_libretro_mgmt.c +++ b/console/rarch_console_libretro_mgmt.c @@ -128,17 +128,6 @@ bool rarch_configure_libretro_core(const char *full_path, const char *tmp_path, return find_libretro_file; } -bool rarch_configure_libretro(const input_driver_t *input, const char *path_prefix, const char * extension) -{ - char full_path[1024]; - snprintf(full_path, sizeof(full_path), "%sCORE%s", path_prefix, extension); - - bool find_libretro_file = rarch_configure_libretro_core(full_path, path_prefix, path_prefix, - default_paths.config_file, extension); - - return find_libretro_file; -} - bool rarch_manage_libretro_extension_supported(const char *filename) { bool ext_supported = false; diff --git a/console/rarch_console_libretro_mgmt.h b/console/rarch_console_libretro_mgmt.h index e7f258ed1b..cd11b181ab 100644 --- a/console/rarch_console_libretro_mgmt.h +++ b/console/rarch_console_libretro_mgmt.h @@ -32,7 +32,6 @@ void rarch_manage_libretro_set_first_file(char *first_file, size_t size_of_first #ifndef IS_SALAMANDER bool rarch_configure_libretro_core(const char *full_path, const char *tmp_path, const char *libretro_path, const char *config_path, const char *extension); -bool rarch_configure_libretro(const input_driver_t *input, const char *path_prefix, const char * extension); bool rarch_manage_libretro_extension_supported(const char *filename); #endif diff --git a/ps3/frontend/main.c b/ps3/frontend/main.c index 2ff2a1e659..157f17393d 100644 --- a/ps3/frontend/main.c +++ b/ps3/frontend/main.c @@ -259,7 +259,11 @@ int main(int argc, char *argv[]) const char *extension = default_paths.executable_extension; const input_driver_t *input = &input_ps3; - bool find_libretro_file = rarch_configure_libretro(input, path_prefix, extension); + char full_path[1024]; + snprintf(full_path, sizeof(full_path), "%sCORE%s", path_prefix, extension); + + bool find_libretro_file = rarch_configure_libretro_core(full_path, path_prefix, path_prefix, + default_paths.config_file, extension); rarch_settings_set_default(input); rarch_config_load(default_paths.config_file, path_prefix, extension, find_libretro_file);