frontnd: pcnt: enable counters to avoid using ext tools
[pcsx_rearmed.git] / frontend / plugin.c
index 33efbf0..7b0d301 100644 (file)
@@ -75,6 +75,8 @@ 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, uint32_t *);
+extern void GPUrearmedCallbacks(const struct rearmed_cbs *cbs);
 
 
 #define DUMMY(id, name) \
@@ -166,6 +168,8 @@ static const struct {
        DIRECT_GPU(GPUwriteDataMem),
        DIRECT_GPU(GPUdmaChain),
        DIRECT_GPU(GPUfreeze),
+       DIRECT_GPU(GPUvBlank),
+       DIRECT_GPU(GPUrearmedCallbacks),
 
        DUMMY_GPU(GPUdisplayText),
 /*
@@ -178,7 +182,6 @@ static const struct {
        DIRECT_GPU(GPUshowScreenPic),
 */
 //     DIRECT_GPU(GPUclearDynarec),
-//     DIRECT_GPU(GPUvBlank),
 };
 
 void *plugin_link(enum builtint_plugins_e id, const char *sym)
@@ -268,8 +271,7 @@ pc_hook_func              (SPU_playCDDAchannel, (short *a0, int a1), (a0, a1), P
 
 void pcnt_hook_plugins(void)
 {
-       /* test it first */
-       pcnt_get();
+       pcnt_init();
 
        hook_it(GPU_writeStatus);
        hook_it(GPU_writeData);