diff --git a/frontend/frontend_driver.c b/frontend/frontend_driver.c index aeb02a1727..0d7fb67700 100644 --- a/frontend/frontend_driver.c +++ b/frontend/frontend_driver.c @@ -16,11 +16,9 @@ #include +#include + #include "frontend_driver.h" -#ifndef IS_SALAMANDER -#include "../driver.h" -#include "../verbosity.h" -#endif #ifdef HAVE_CONFIG_H #include "../config.h" diff --git a/frontend/frontend_salamander.c b/frontend/frontend_salamander.c index e53bf697d3..5f51e846a7 100644 --- a/frontend/frontend_salamander.c +++ b/frontend/frontend_salamander.c @@ -24,10 +24,10 @@ #include #include #include +#include #include "frontend_driver.h" #include "../defaults.h" -#include "../file_ext.h" #include "../verbosity.h" struct defaults g_defaults; @@ -135,7 +135,12 @@ static void salamander_init(char *s, size_t len) } if (!config_file_exists || !strcmp(s, "")) - find_and_set_first_file(s, len, EXT_EXECUTABLES); + { + char executable_name[PATH_MAX_LENGTH]; + + frontend_driver_get_core_extension(executable_name, sizeof(executable_name)); + find_and_set_first_file(s, len, executable_name); + } else RARCH_LOG("Start [%s] found in retroarch.cfg.\n", s);