From 413822c32c3914675e68f269c0997d8ad9b8a9f4 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 4 Jun 2014 23:30:48 +0200 Subject: [PATCH] (GX) Make find_and_set_first_file the same as code for PS3 --- frontend/platform/platform_gx.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index 6fca9b262f..793a58fddf 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -62,8 +62,11 @@ static void find_and_set_first_file(void) find_first_libretro_core(first_file, sizeof(first_file), default_paths.core_dir, "dol"); - if(first_file[0]) - strlcpy(libretro_path, first_file, sizeof(libretro_path)); + if(first_file) + { + fill_pathname_join(libretro_path, default_paths.core_dir, first_file, sizeof(libretro_path)); + RARCH_LOG("libretro_path now set to: %s.\n", libretro_path); + } else RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n"); }