From: notaz Date: Mon, 4 Apr 2011 22:13:25 +0000 (+0300) Subject: plugins: expand GPUvBlank to pass hcounter pointer X-Git-Tag: r9~95 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=commitdiff_plain;h=6c9a982ac534aef9b19b9e7d9033516a0f13485a plugins: expand GPUvBlank to pass hcounter pointer --- diff --git a/frontend/plugin.c b/frontend/plugin.c index bc42f047..0d244fa7 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -75,7 +75,7 @@ extern void GPUreadDataMem(uint32_t *, int); extern long GPUdmaChain(uint32_t *,uint32_t); extern void GPUupdateLace(void); extern long GPUfreeze(uint32_t, void *); -extern void GPUvBlank(int); +extern void GPUvBlank(int, uint32_t *); #define DUMMY(id, name) \ diff --git a/libpcsxcore/plugins.h b/libpcsxcore/plugins.h index 8084143a..c7240315 100644 --- a/libpcsxcore/plugins.h +++ b/libpcsxcore/plugins.h @@ -94,7 +94,7 @@ typedef long (CALLBACK* GPUfreeze)(uint32_t, GPUFreeze_t *); typedef long (CALLBACK* GPUgetScreenPic)(unsigned char *); typedef long (CALLBACK* GPUshowScreenPic)(unsigned char *); typedef void (CALLBACK* GPUclearDynarec)(void (CALLBACK *callback)(void)); -typedef void (CALLBACK* GPUvBlank)(int); +typedef void (CALLBACK* GPUvBlank)(int, uint32_t *); // GPU function pointers extern GPUupdateLace GPU_updateLace; diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index 044d0d38..1c514e8f 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -286,7 +286,7 @@ void psxRcntUpdate() // VSync irq. if( hSyncCount == VBlankStart[Config.PsxType] ) { - GPU_vBlank( 1 ); + GPU_vBlank( 1, &hSyncCount ); // For the best times. :D //setIrq( 0x01 ); @@ -297,7 +297,7 @@ void psxRcntUpdate() { hSyncCount = 0; - GPU_vBlank( 0 ); + GPU_vBlank( 0, &hSyncCount ); setIrq( 0x01 ); EmuUpdate();