aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authornotaz2011-12-05 00:11:01 +0200
committernotaz2011-12-05 01:08:36 +0200
commit24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b (patch)
tree91bba897e5778752e21366768661ae9cfe0494c3 /frontend
parentddbaf678c49d33cf60f1eac5069e3275baa2c685 (diff)
downloadpcsx_rearmed-24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b.tar.gz
pcsx_rearmed-24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b.tar.bz2
pcsx_rearmed-24de2dd4dbdd50e44c91c40ebbc7d59ee1c0ac9b.zip
remove gpu vblank callbacks
we do it in core now
Diffstat (limited to 'frontend')
-rw-r--r--frontend/plugin.c2
-rw-r--r--frontend/plugin_lib.c4
-rw-r--r--frontend/plugin_lib.h1
3 files changed, 6 insertions, 1 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c
index e741a1a..a5f9830 100644
--- a/frontend/plugin.c
+++ b/frontend/plugin.c
@@ -168,7 +168,7 @@ static const struct {
DIRECT_GPU(GPUwriteDataMem),
DIRECT_GPU(GPUdmaChain),
DIRECT_GPU(GPUfreeze),
- DIRECT_GPU(GPUvBlank),
+// DIRECT_GPU(GPUvBlank), // unused
DIRECT_GPU(GPUrearmedCallbacks),
DUMMY_GPU(GPUdisplayText),
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index 9003ff8..e93c12f 100644
--- a/frontend/plugin_lib.c
+++ b/frontend/plugin_lib.c
@@ -475,8 +475,12 @@ void pl_start_watchdog(void)
void pl_init(void)
{
+ extern unsigned int hSyncCount; // from psxcounters
+
pl_vout_w = pl_vout_h = 256;
pl_vout_bpp = 16;
tsdev = pl_gun_ts_init();
+
+ pl_rearmed_cbs.gpu_hcnt = &hSyncCount;
}
diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h
index 43c1a5f..81a6b28 100644
--- a/frontend/plugin_lib.h
+++ b/frontend/plugin_lib.h
@@ -47,6 +47,7 @@ struct rearmed_cbs {
// gpu options
int frameskip;
int fskip_advice;
+ unsigned int *gpu_hcnt;
struct {
int iUseDither;
int dwActFixes;