diff --git a/frontend/drivers/platform_ctr.c b/frontend/drivers/platform_ctr.c index 7ca1d42c62..61212c3b83 100644 --- a/frontend/drivers/platform_ctr.c +++ b/frontend/drivers/platform_ctr.c @@ -205,54 +205,54 @@ static void frontend_ctr_deinit(void* data) static void frontend_ctr_exec(const char *path, bool should_load_game) { -#ifndef IS_SALAMANDER -#ifdef HAVE_NETWORKING - const char *arg_data[NETPLAY_FORK_MAX_ARGS + 1]; -#else - const char *arg_data[3]; -#endif - char game_path[PATH_MAX]; -#else - const char *arg_data[2]; -#endif - DEBUG_VAR(path); DEBUG_STR(path); - arg_data[0] = elf_path_cst; - arg_data[1] = NULL; - -#ifndef IS_SALAMANDER - if (should_load_game) - { - const char *content = path_get(RARCH_PATH_CONTENT); - -#ifdef HAVE_NETWORKING - if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_GET_FORK_ARGS, - (void*)&arg_data[1])) -#endif - if (!string_is_empty(content)) - { - strlcpy(game_path, content, sizeof(game_path)); - arg_data[1] = game_path; - arg_data[2] = NULL; - } - } -#endif - if (!string_is_empty(path)) { -#ifdef IS_SALAMANDER - struct stat sbuff; +#ifndef IS_SALAMANDER +#ifdef HAVE_NETWORKING + char *arg_data[NETPLAY_FORK_MAX_ARGS + 1]; +#else + char *arg_data[3]; +#endif + char game_path[PATH_MAX]; +#else + char *arg_data[2]; +#endif - if (stat(path, &sbuff)) + arg_data[0] = elf_path_cst; + arg_data[1] = NULL; + +#ifndef IS_SALAMANDER + if (should_load_game) { - char core_path[PATH_MAX]; + const char *content = path_get(RARCH_PATH_CONTENT); - get_first_valid_core(core_path, sizeof(core_path)); +#ifdef HAVE_NETWORKING + if (!netplay_driver_ctl(RARCH_NETPLAY_CTL_GET_FORK_ARGS, + (void*)&arg_data[1])) +#endif + if (!string_is_empty(content)) + { + strlcpy(game_path, content, sizeof(game_path)); + arg_data[1] = game_path; + arg_data[2] = NULL; + } + } +#else + { + struct stat sbuff; - if (string_is_empty(core_path)) - error_and_quit("There are no cores installed, install a core to continue."); + if (stat(path, &sbuff)) + { + char core_path[PATH_MAX]; + + get_first_valid_core(core_path, sizeof(core_path)); + + if (string_is_empty(core_path)) + error_and_quit("There are no cores installed, install a core to continue."); + } } #endif @@ -271,6 +271,7 @@ static void frontend_ctr_exec(const char *path, bool should_load_game) RARCH_WARN("card may be corrupted!\n"); RARCH_WARN("\n"); RARCH_WARN("\n"); + exec_cia(path, arg_data); } diff --git a/frontend/drivers/platform_gx.c b/frontend/drivers/platform_gx.c index fae7601242..655f961fc9 100644 --- a/frontend/drivers/platform_gx.c +++ b/frontend/drivers/platform_gx.c @@ -54,6 +54,10 @@ #include "../frontend_driver.h" #include "../../defaults.h" +#ifndef IS_SALAMANDER +#include "../../menu/menu_entries.h" +#endif + #ifdef HW_RVL #include #include diff --git a/frontend/drivers/platform_psp.c b/frontend/drivers/platform_psp.c index 448bc476c9..80da3fe04e 100644 --- a/frontend/drivers/platform_psp.c +++ b/frontend/drivers/platform_psp.c @@ -89,7 +89,9 @@ static enum frontend_fork psp_fork_mode = FRONTEND_FORK_NONE; static void frontend_psp_get_env_settings(int *argc, char *argv[], void *args, void *params_data) { +#ifndef IS_SALAMANDER struct rarch_main_wrap *params = (struct rarch_main_wrap*)params_data; +#endif #ifdef VITA strcpy_literal(eboot_path, "app0:/"); diff --git a/frontend/drivers/platform_wiiu.c b/frontend/drivers/platform_wiiu.c index 16bb23ef62..0557e92fb0 100644 --- a/frontend/drivers/platform_wiiu.c +++ b/frontend/drivers/platform_wiiu.c @@ -260,12 +260,12 @@ static void frontend_wiiu_exec(const char *path, bool should_load_content) if (HBL_loadToMemory(path, (u32)arg - (u32)param) < 0) { - RARCH_LOG("Failed to load core\n"); + RARCH_ERR("Failed to load core\n"); } else { param->magic = ARGV_MAGIC; - ARGV_PTR = param; + ARGV_PTR = param; DEBUG_VAR(param->argc); DEBUG_VAR(param->argv);