mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
(XDK) Some cleanups to find_and_set_first_file
This commit is contained in:
parent
3c7124dd0c
commit
d0fff4a625
@ -32,11 +32,6 @@ char libretro_path[512];
|
|||||||
|
|
||||||
static void find_and_set_first_file(void)
|
static void find_and_set_first_file(void)
|
||||||
{
|
{
|
||||||
#ifndef IS_SALAMANDER
|
|
||||||
bool original_verbose = g_extern.verbose;
|
|
||||||
g_extern.verbose = true;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Last fallback - we'll need to start the first executable file
|
//Last fallback - we'll need to start the first executable file
|
||||||
// we can find in the RetroArch cores directory
|
// we can find in the RetroArch cores directory
|
||||||
|
|
||||||
@ -52,7 +47,7 @@ static void find_and_set_first_file(void)
|
|||||||
if(first_file)
|
if(first_file)
|
||||||
{
|
{
|
||||||
#ifdef _XBOX1
|
#ifdef _XBOX1
|
||||||
fill_pathname_join(libretro_path, "D:", first_file, sizeof(libretro_path));
|
fill_pathname_join(libretro_path, default_paths.core_dir, first_file, sizeof(libretro_path));
|
||||||
#else
|
#else
|
||||||
strlcpy(libretro_path, first_file, sizeof(libretro_path));
|
strlcpy(libretro_path, first_file, sizeof(libretro_path));
|
||||||
#endif
|
#endif
|
||||||
@ -60,10 +55,6 @@ static void find_and_set_first_file(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n");
|
RARCH_ERR("Failed last fallback - RetroArch Salamander will exit.\n");
|
||||||
|
|
||||||
#ifndef IS_SALAMANDER
|
|
||||||
g_extern.verbose = original_verbose;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void frontend_xdk_salamander_init(void)
|
static void frontend_xdk_salamander_init(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user