diff --git a/frontend/platform/platform_gx.c b/frontend/platform/platform_gx.c index cb313af8ba..25a2454092 100644 --- a/frontend/platform/platform_gx.c +++ b/frontend/platform/platform_gx.c @@ -316,20 +316,22 @@ static void system_init(void) #endif } +static void system_exec(const char *path, bool should_load_game); + static void system_exitspawn(void) { #if defined(IS_SALAMANDER) - rarch_console_exec(default_paths.libretro_path, gx_rom_path[0] != '\0' ? true : false); + system_exec(default_paths.libretro_path, gx_rom_path[0] != '\0' ? true : false); #elif defined(HW_RVL) bool should_load_game = false; if (g_extern.lifecycle_mode_state & (1ULL << MODE_EXITSPAWN_START_GAME)) should_load_game = true; - rarch_console_exec(g_settings.libretro, should_load_game); + system_exec(g_settings.libretro, should_load_game); // direct loading failed (out of memory), try to jump to salamander then load the correct core char boot_dol[PATH_MAX]; snprintf(boot_dol, sizeof(boot_dol), "%s/boot.dol", default_paths.core_dir); - rarch_console_exec(boot_dol, should_load_game); + system_exec(boot_dol, should_load_game); #endif } diff --git a/frontend/platform/platform_xdk.c b/frontend/platform/platform_xdk.c index d021b8230b..3f9ce746f4 100644 --- a/frontend/platform/platform_xdk.c +++ b/frontend/platform/platform_xdk.c @@ -307,16 +307,18 @@ static int system_process_args(int argc, char *argv[]) return 0; } +static void system_exec(const char *path, bool should_load_game); + static void system_exitspawn(void) { #ifdef IS_SALAMANDER - rarch_console_exec(default_paths.libretro_path, false); + system_exec(default_paths.libretro_path, false); #else bool should_load_game = false; if (g_extern.lifecycle_mode_state & (1ULL << MODE_EXITSPAWN_START_GAME)) should_load_game = true; - rarch_console_exec(g_settings.libretro, should_load_game); + system_exec(g_settings.libretro, should_load_game); #endif } diff --git a/gx/gx_video.c b/gx/gx_video.c index 1c8024097b..27190521c2 100644 --- a/gx/gx_video.c +++ b/gx/gx_video.c @@ -1012,17 +1012,6 @@ static void gx_set_rotation(void *data, unsigned orientation) gx->should_resize = true; } -static bool gx_set_shader(void *data, enum rarch_shader_type type, const char *path) -{ - (void)data; - (void)type; - (void)path; - (void)index; - - RARCH_WARN("Shader support is not implemented for GX.\n"); - return false; -} - static void gx_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha) {