From 159602d697fc3b471e1a6b4f19851e9f91e16911 Mon Sep 17 00:00:00 2001 From: "U-LAPTOP-0BS9KNOH\\crystal" Date: Wed, 19 May 2021 22:50:34 +0200 Subject: [PATCH] Change default video driver name for PSL1GHT --- configuration.c | 7 ++++++- gfx/drivers/{gcm_gfx.c => rsx_gfx.c} | 0 griffin/griffin.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) rename gfx/drivers/{gcm_gfx.c => rsx_gfx.c} (100%) diff --git a/configuration.c b/configuration.c index 01bef9828b..0517e8915b 100644 --- a/configuration.c +++ b/configuration.c @@ -93,6 +93,7 @@ enum video_driver_enum VIDEO_GDI, VIDEO_VGA, VIDEO_FPGA, + VIDEO_RSX, VIDEO_NULL }; @@ -265,7 +266,7 @@ static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_METAL; static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL1; #elif defined(HAVE_VITA2D) static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_VITA2D; -#elif defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(HAVE_PSGL) || defined(__PSL1GHT__) +#elif defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) || defined(HAVE_PSGL) static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL; #elif defined(HAVE_OPENGL_CORE) && !defined(__HAIKU__) static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_GL_CORE; @@ -315,6 +316,8 @@ static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_VGA; static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_FPGA; #elif defined(HAVE_DYLIB) && !defined(ANDROID) static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_EXT; +#elif defined(__PSL1GHT__) +static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_RSX; #else static const enum video_driver_enum VIDEO_DEFAULT_DRIVER = VIDEO_NULL; #endif @@ -867,6 +870,8 @@ const char *config_get_default_video(void) return "vga"; case VIDEO_FPGA: return "fpga"; + case VIDEO_RSX: + return "rsx"; case VIDEO_NULL: break; } diff --git a/gfx/drivers/gcm_gfx.c b/gfx/drivers/rsx_gfx.c similarity index 100% rename from gfx/drivers/gcm_gfx.c rename to gfx/drivers/rsx_gfx.c diff --git a/griffin/griffin.c b/griffin/griffin.c index 740ef68184..ec0204448f 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -517,7 +517,7 @@ VIDEO DRIVER #endif #if defined(__PSL1GHT__) -#include "../gfx/drivers/gcm_gfx.c" +#include "../gfx/drivers/rsx_gfx.c" #elif defined(GEKKO) #include "../gfx/drivers/gx_gfx.c" #elif defined(PSP)