notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make PCNT stuff optional
[pcsx_rearmed.git]
/
frontend
/
plugin.c
diff --git
a/frontend/plugin.c
b/frontend/plugin.c
index
d6aca8a
..
bcf3885
100644
(file)
--- a/
frontend/plugin.c
+++ b/
frontend/plugin.c
@@
-199,6
+199,8
@@
void *plugin_link(enum builtint_plugins_e id, const char *sym)
return NULL;
}
return NULL;
}
+#ifdef PCNT
+
/* basic profile stuff */
#include "pcnt.h"
/* 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)
{
void pcnt_hook_plugins(void)
{
+ /* test it first */
+ pcnt_get();
+
hook_it(GPU_writeStatus);
hook_it(GPU_writeData);
hook_it(GPU_writeDataMem);
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);
}
hook_it(SPU_playCDDAchannel);
}
+#endif