aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
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;