From 6c9a982ac534aef9b19b9e7d9033516a0f13485a Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 5 Apr 2011 01:13:25 +0300 Subject: [PATCH] plugins: expand GPUvBlank to pass hcounter pointer --- frontend/plugin.c | 2 +- libpcsxcore/plugins.h | 2 +- libpcsxcore/psxcounters.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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(); -- 2.39.2