clean up old gpu psemu funcs
authornotaz <notasas@gmail.com>
Sun, 30 Mar 2025 13:57:45 +0000 (16:57 +0300)
committernotaz <notasas@gmail.com>
Sun, 30 Mar 2025 15:48:47 +0000 (18:48 +0300)
frontend/plugin.c
libpcsxcore/plugins.c
libpcsxcore/plugins.h

index 1914325..8db390a 100644 (file)
@@ -20,9 +20,6 @@
 #undef CALLBACK
 #define CALLBACK
 
-/* GPU */
-static void CALLBACK GPUdisplayText(char *_) { return; }
-
 /* SPU */
 #include "../plugins/dfsound/spu.h"
 
@@ -170,15 +167,6 @@ static const struct {
        DIRECT_GPU(GPUvBlank),
        DIRECT_GPU(GPUgetScreenInfo),
        DIRECT_GPU(GPUrearmedCallbacks),
-
-       DIRECT_GPU(GPUdisplayText),
-/*
-       DIRECT_GPU(GPUkeypressed),
-       DIRECT_GPU(GPUmakeSnapshot),
-       DIRECT_GPU(GPUconfigure),
-       DIRECT_GPU(GPUgetScreenPic),
-       DIRECT_GPU(GPUshowScreenPic),
-*/
 };
 
 void *plugin_link(enum builtint_plugins_e id, const char *sym)
index e59e8c6..d29ee1d 100644 (file)
@@ -41,12 +41,7 @@ GPUwriteStatus        GPU_writeStatus;
 GPUwriteData          GPU_writeData;
 GPUwriteDataMem       GPU_writeDataMem;
 GPUdmaChain           GPU_dmaChain;
-GPUkeypressed         GPU_keypressed;
-GPUdisplayText        GPU_displayText;
-GPUmakeSnapshot       GPU_makeSnapshot;
 GPUfreeze             GPU_freeze;
-GPUgetScreenPic       GPU_getScreenPic;
-GPUshowScreenPic      GPU_showScreenPic;
 GPUvBlank             GPU_vBlank;
 GPUgetScreenInfo      GPU_getScreenInfo;
 
@@ -163,19 +158,8 @@ static const char *err;
 
 void *hGPUDriver = NULL;
 
-void CALLBACK GPU__displayText(char *pText) {
-       SysPrintf("%s\n", pText);
-}
-
-long CALLBACK GPU__configure(void) { return 0; }
-long CALLBACK GPU__test(void) { return 0; }
-void CALLBACK GPU__about(void) {}
-void CALLBACK GPU__makeSnapshot(void) {}
-void CALLBACK GPU__keypressed(int key) {}
-long CALLBACK GPU__getScreenPic(unsigned char *pMem) { return -1; }
-long CALLBACK GPU__showScreenPic(unsigned char *pMem) { return -1; }
-void CALLBACK GPU__vBlank(int val) {}
-void CALLBACK GPU__getScreenInfo(int *y, int *base_hres) {}
+static void CALLBACK GPU__vBlank(int val) {}
+static void CALLBACK GPU__getScreenInfo(int *y, int *base_hres) {}
 
 #define LoadGpuSym1(dest, name) \
        LoadSym(GPU_##dest, GPU##dest, name, TRUE);
@@ -207,12 +191,7 @@ static int LoadGPUplugin(const char *GPUdll) {
        LoadGpuSym1(writeStatus, "GPUwriteStatus");
        LoadGpuSym1(dmaChain, "GPUdmaChain");
        LoadGpuSym1(updateLace, "GPUupdateLace");
-       LoadGpuSym0(keypressed, "GPUkeypressed");
-       LoadGpuSym0(displayText, "GPUdisplayText");
-       LoadGpuSym0(makeSnapshot, "GPUmakeSnapshot");
        LoadGpuSym1(freeze, "GPUfreeze");
-       LoadGpuSym0(getScreenPic, "GPUgetScreenPic");
-       LoadGpuSym0(showScreenPic, "GPUshowScreenPic");
        LoadGpuSym0(vBlank, "GPUvBlank");
        LoadGpuSym0(getScreenInfo, "GPUgetScreenInfo");
 
index 4755c17..87104e5 100644 (file)
@@ -61,12 +61,7 @@ typedef uint32_t (CALLBACK* GPUreadData)(void);
 typedef void (CALLBACK* GPUreadDataMem)(uint32_t *, int);\r
 typedef long (CALLBACK* GPUdmaChain)(uint32_t *, uint32_t, uint32_t *, int32_t *);\r
 typedef void (CALLBACK* GPUupdateLace)(void);\r
-typedef void (CALLBACK* GPUmakeSnapshot)(void);\r
-typedef void (CALLBACK* GPUkeypressed)(int);\r
-typedef void (CALLBACK* GPUdisplayText)(char *);\r
 typedef long (CALLBACK* GPUfreeze)(uint32_t, GPUFreeze_t *);\r
-typedef long (CALLBACK* GPUgetScreenPic)(unsigned char *);\r
-typedef long (CALLBACK* GPUshowScreenPic)(unsigned char *);\r
 typedef void (CALLBACK* GPUvBlank)(int, int);\r
 typedef void (CALLBACK* GPUgetScreenInfo)(int *, int *);\r
 \r
@@ -83,12 +78,7 @@ extern GPUwriteStatus   GPU_writeStatus;
 extern GPUwriteData     GPU_writeData;\r
 extern GPUwriteDataMem  GPU_writeDataMem;\r
 extern GPUdmaChain      GPU_dmaChain;\r
-extern GPUkeypressed    GPU_keypressed;\r
-extern GPUdisplayText   GPU_displayText;\r
-extern GPUmakeSnapshot  GPU_makeSnapshot;\r
 extern GPUfreeze        GPU_freeze;\r
-extern GPUgetScreenPic  GPU_getScreenPic;\r
-extern GPUshowScreenPic GPU_showScreenPic;\r
 extern GPUvBlank        GPU_vBlank;\r
 extern GPUgetScreenInfo GPU_getScreenInfo;\r
 \r
@@ -212,8 +202,6 @@ typedef struct {
        char CdromID[9];        // ie. 'SCPH12345', no \0 trailing character\r
        char CdromLabel[11];\r
        void *psxMem;\r
-       GPUshowScreenPic GPU_showScreenPic;\r
-       GPUdisplayText GPU_displayText;\r
        PADsetSensitive PAD_setSensitive;\r
        char GPUpath[256];      // paths must be absolute\r
        char SPUpath[256];\r