(Switch) Stub this code out for now

This commit is contained in:
twinaphex 2019-05-29 12:57:36 +02:00
parent 3c15d16728
commit d37e610d70
1 changed files with 14 additions and 12 deletions

View File

@ -8,7 +8,6 @@
#include <dirent.h> #include <dirent.h>
#include <file/nbio.h> #include <file/nbio.h>
#include <formats/rpng.h>
#include <formats/image.h> #include <formats/image.h>
#ifdef HAVE_LIBNX #ifdef HAVE_LIBNX
@ -397,7 +396,10 @@ static void frontend_switch_exitspawn(char *s, size_t len)
frontend_switch_exec(s, should_load_game); frontend_switch_exec(s, should_load_game);
} }
void argb_to_rgba8(uint32_t *buff, uint32_t height, uint32_t width) #if 0
/* TODO/FIXME - should be refactored into something that can be used for all
* RetroArch versions, and not just Switch */
static void argb_to_rgba8(uint32_t *buff, uint32_t height, uint32_t width)
{ {
uint32_t h, w; uint32_t h, w;
/* Convert */ /* Convert */
@ -418,7 +420,7 @@ void argb_to_rgba8(uint32_t *buff, uint32_t height, uint32_t width)
} }
} }
void frontend_switch_showsplash(void) static void frontend_switch_showsplash(void)
{ {
printf("[Splash] Showing splashScreen\n"); printf("[Splash] Showing splashScreen\n");
@ -521,6 +523,7 @@ end:
return ret; return ret;
} }
#endif
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
{ {
@ -686,8 +689,6 @@ static void frontend_switch_init(void *data)
{ {
#ifdef HAVE_LIBNX #ifdef HAVE_LIBNX
bool recording_supported = false; bool recording_supported = false;
rarch_system_info_t *sys_info = NULL;
const char *core_name = NULL;
uint32_t width = 0; uint32_t width = 0;
uint32_t height = 0; uint32_t height = 0;
@ -723,20 +724,19 @@ static void frontend_switch_init(void *data)
RARCH_WARN("Error initializing psm\n"); RARCH_WARN("Error initializing psm\n");
} }
sys_info = runloop_get_system_info(); #if 0
retro_get_system_info(sys_info);
#ifndef HAVE_OPENGL #ifndef HAVE_OPENGL
/* Load splash */ /* Load splash */
if (!splashData) if (!splashData)
{ {
rarch_system_info_t *sys_info = runloop_get_system_info();
retro_get_system_info(sys_info);
if (sys_info) if (sys_info)
{ {
char *full_core_splash_path; const char *core_name = sys_info->info.library_name;
char *full_core_splash_path = (char*)malloc(PATH_MAX);
core_name = sys_info->info.library_name;
full_core_splash_path = (char*)malloc(PATH_MAX);
snprintf(full_core_splash_path, snprintf(full_core_splash_path,
PATH_MAX, "/retroarch/rgui/splash/%s.png", core_name); PATH_MAX, "/retroarch/rgui/splash/%s.png", core_name);
@ -781,6 +781,8 @@ static void frontend_switch_init(void *data)
frontend_switch_showsplash(); frontend_switch_showsplash();
} }
#endif #endif
#endif
#endif /* HAVE_LIBNX (splash) */ #endif /* HAVE_LIBNX (splash) */
} }