From 7676de50ce741297fd8238c9c8534cc37cdcc104 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 5 Jun 2014 02:12:42 +0200 Subject: [PATCH] (Salamander) Use EXT_EXECUTABLES --- frontend/platform/platform_gx.c | 2 +- frontend/platform/platform_ps3.c | 2 +- frontend/platform/platform_xdk.c | 12 +----------- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index 3a0b1cc9c9..d472224f19 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -75,7 +75,7 @@ static void frontend_gx_salamander_init(void) } if(!config_file_exists || !strcmp(libretro_path, "")) - find_and_set_first_file(libretro_path, sizeof(libretro_path), "dol"); + find_and_set_first_file(libretro_path, sizeof(libretro_path), EXT_EXECUTABLES); else { RARCH_LOG("Start [%s] found in retroarch.cfg.\n", libretro_path); diff --git a/frontend/platform/platform_ps3.c b/frontend/platform/platform_ps3.c index 1591a819ba..d282486b98 100644 --- a/frontend/platform/platform_ps3.c +++ b/frontend/platform/platform_ps3.c @@ -67,7 +67,7 @@ static void frontend_ps3_salamander_init(void) } if (!config_file_exists || !strcmp(libretro_path, "")) - find_and_set_first_file(libretro_path, sizeof(libretro_path), "SELF"); + find_and_set_first_file(libretro_path, sizeof(libretro_path), EXT_EXECUTABLES); else RARCH_LOG("Start [%s] found in retroarch.cfg.\n", libretro_path); diff --git a/frontend/platform/platform_xdk.c b/frontend/platform/platform_xdk.c index 80e70b525c..f8871b3ece 100644 --- a/frontend/platform/platform_xdk.c +++ b/frontend/platform/platform_xdk.c @@ -32,8 +32,6 @@ char libretro_path[512]; static void frontend_xdk_salamander_init(void) { - (void)state; - //normal executable loading path char tmp_str[PATH_MAX]; bool config_file_exists = false; @@ -49,17 +47,9 @@ static void frontend_xdk_salamander_init(void) } if(!config_file_exists || !strcmp(libretro_path, "")) - { -#if defined(_XBOX360) - find_and_set_first_file(libretro_path, sizeof(libretro_path), "xex"); -#elif defined(_XBOX1) - find_and_set_first_file(libretro_path, sizeof(libretro_path), "xbe"); -#endif - } + find_and_set_first_file(libretro_path, sizeof(libretro_path), EXT_EXECUTABLES); else - { RARCH_LOG("Start [%s] found in retroarch.cfg.\n", libretro_path); - } if (!config_file_exists) {