(Libretro mgmt) use rarch_configure_libretro_core for

Xbox 1 port
This commit is contained in:
twinaphex 2012-08-05 07:51:43 +02:00
parent 6b02f6d21d
commit 848ef3c1e4
3 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,8 @@
#include "../boolean.h"
#include "../file.h"
#include "rarch_console_libretro_mgmt.h"
// if a CORE executable exists (full_path), this means we have just installed
// a new libretro port and therefore we need to change it to a more
// sane name.
@ -100,7 +102,7 @@ static bool rarch_manage_libretro_install(char *libretro_core_installed, size_t
return ret;
}
static bool rarch_configure_libretro_core(const char *full_path, const char *tmp_path,
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 libretro_core_was_installed = false;

View File

@ -30,6 +30,8 @@ enum
void rarch_manage_libretro_set_first_file(char *first_file, size_t size_of_first_file, const char *libretro_path, const char * exe_ext);
#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

View File

@ -141,7 +141,12 @@ int main(int argc, char *argv[])
#endif
const char *extension = default_paths.executable_extension;
const input_driver_t *input = &input_xinput;
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);