diff options
| author | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
|---|---|---|
| committer | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
| commit | a58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch) | |
| tree | b4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /plugins/dfxvideo/zn.c | |
| parent | 9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff) | |
| download | pcsxr-a58cfdac407bc1d8fedc11acd924b275ba28cc51.tar.gz | |
Commited patch in issue #8171 (by darktjm).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfxvideo/zn.c')
| -rw-r--r-- | plugins/dfxvideo/zn.c | 56 |
1 files changed, 14 insertions, 42 deletions
diff --git a/plugins/dfxvideo/zn.c b/plugins/dfxvideo/zn.c index 534e9674..d3fe1c57 100644 --- a/plugins/dfxvideo/zn.c +++ b/plugins/dfxvideo/zn.c @@ -23,37 +23,7 @@ // - psx gpu plugin interface prototypes-------------- // // --------------------------------------------------- // -#ifdef _WINDOWS
-long CALLBACK GPUopen(HWND hwndGPU);
-#else
-long GPUopen(unsigned long * disp,const char * CapText,const char * CfgFile);
-#endif -void CALLBACK GPUdisplayText(char * pText); -void CALLBACK GPUdisplayFlags(uint32_t dwFlags); -void CALLBACK GPUmakeSnapshot(void); -long CALLBACK GPUinit(); -long CALLBACK GPUclose(); -long CALLBACK GPUshutdown(); -void CALLBACK GPUcursor(int iPlayer,int x,int y); -void CALLBACK GPUupdateLace(void); -uint32_t CALLBACK GPUreadStatus(void); -void CALLBACK GPUwriteStatus(uint32_t gdata); -void CALLBACK GPUreadDataMem(uint32_t * pMem, int iSize); -uint32_t CALLBACK GPUreadData(void); -void CALLBACK GPUwriteDataMem(uint32_t * pMem, int iSize); -void CALLBACK GPUwriteData(uint32_t gdata); -void CALLBACK GPUsetMode(uint32_t gdata); -long CALLBACK GPUgetMode(void); -long CALLBACK GPUdmaChain(uint32_t * baseAddrL, uint32_t addr); -long CALLBACK GPUconfigure(void); -void CALLBACK GPUabout(void); -long CALLBACK GPUtest(void); -long CALLBACK GPUfreeze(uint32_t ulGetFreezeData,void * pF); -void CALLBACK GPUgetScreenPic(unsigned char * pMem); -void CALLBACK GPUshowScreenPic(unsigned char * pMem); -#ifndef _WINDOWS
-void CALLBACK GPUkeypressed(int keycode);
-#endif +#include "psemu_plugin_defs.h" // --------------------------------------------------- // // - zn gpu interface -------------------------------- // @@ -79,6 +49,7 @@ typedef struct GPUOTAG const char* CfgFile; // NULL terminated string } GPUConfiguration_t; +#if 0 // ZN_* functions: wtf? not supported by pcsx // --------------------------------------------------- // // --------------------------------------------------- // // --------------------------------------------------- // @@ -113,10 +84,10 @@ long CALLBACK ZN_GPUopen(void * vcfg) long lret; if(!cfg) return -1; - if(cfg->Version!=1) return -1;
+ if(cfg->Version!=1) return -1; -#ifdef _WINDOWS
- lret=GPUopen((HWND)cfg->hWnd);
+#ifdef _WINDOWS + lret=GPUopen((HWND)cfg->hWnd); #else lret = GPUopen(&cfg->hWnd, cfg->GameName, cfg->CfgFile); #endif @@ -254,11 +225,12 @@ void CALLBACK ZN_GPUshowScreenPic(unsigned char * pMem) // --------------------------------------------------- // -#ifndef _WINDOWS
-
-void CALLBACK ZN_GPUkeypressed(int keycode)
-{
- GPUkeypressed(keycode);
-}
-
-#endif
+#ifndef _WINDOWS + +void CALLBACK ZN_GPUkeypressed(int keycode) +{ + GPUkeypressed(keycode); +} + +#endif +#endif |
