aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2011-04-05 01:13:25 +0300
committernotaz2011-04-05 01:13:25 +0300
commit6c9a982ac534aef9b19b9e7d9033516a0f13485a (patch)
treed0a44f5c08d80fb9a65a97ac6bdf0ded3c8c9e5b
parent0a1518684006294fca3cb72a6c56483650c4702f (diff)
downloadpcsx_rearmed-6c9a982ac534aef9b19b9e7d9033516a0f13485a.tar.gz
pcsx_rearmed-6c9a982ac534aef9b19b9e7d9033516a0f13485a.tar.bz2
pcsx_rearmed-6c9a982ac534aef9b19b9e7d9033516a0f13485a.zip
plugins: expand GPUvBlank to pass hcounter pointer
-rw-r--r--frontend/plugin.c2
-rw-r--r--libpcsxcore/plugins.h2
-rw-r--r--libpcsxcore/psxcounters.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c
index bc42f04..0d244fa 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 8084143..c724031 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 044d0d3..1c514e8 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();