diff options
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/plugin_lib.c | 2 | ||||
-rw-r--r-- | frontend/plugin_lib.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index e93c12f..eba09fb 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -476,6 +476,7 @@ void pl_start_watchdog(void) void pl_init(void) { extern unsigned int hSyncCount; // from psxcounters + extern unsigned int frame_counter; pl_vout_w = pl_vout_h = 256; pl_vout_bpp = 16; @@ -483,4 +484,5 @@ void pl_init(void) tsdev = pl_gun_ts_init(); pl_rearmed_cbs.gpu_hcnt = &hSyncCount; + pl_rearmed_cbs.gpu_frame_count = &frame_counter; } diff --git a/frontend/plugin_lib.h b/frontend/plugin_lib.h index 81a6b28..914cbff 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_frame_count; unsigned int *gpu_hcnt; struct { int iUseDither; |