make PCNT stuff optional
[pcsx_rearmed.git] / frontend / plugin.c
index d6aca8a..bcf3885 100644 (file)
@@ -199,6 +199,8 @@ void *plugin_link(enum builtint_plugins_e id, const char *sym)
        return NULL;
 }
 
+#ifdef PCNT
+
 /* basic profile stuff */
 #include "pcnt.h"
 
@@ -253,6 +255,9 @@ pc_hook_func              (SPU_playCDDAchannel, (short *a0, int a1), (a0, a1), P
 
 void pcnt_hook_plugins(void)
 {
+       /* test it first */
+       pcnt_get();
+
        hook_it(GPU_writeStatus);
        hook_it(GPU_writeData);
        hook_it(GPU_writeDataMem);
@@ -272,3 +277,4 @@ void pcnt_hook_plugins(void)
        hook_it(SPU_playCDDAchannel);
 }
 
+#endif