aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/plugin.c')
-rw-r--r--frontend/plugin.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/frontend/plugin.c b/frontend/plugin.c
index 83eb140..6c83a44 100644
--- a/frontend/plugin.c
+++ b/frontend/plugin.c
@@ -12,17 +12,13 @@
#include "plugin_lib.h"
#include "plugin.h"
#include "../libpcsxcore/psemu_plugin_defs.h"
+#include "../libpcsxcore/system.h"
#include "../plugins/cdrcimg/cdrcimg.h"
static int dummy_func() {
return 0;
}
-static long CDRreadTrack(unsigned char *time) {
- fprintf(stderr, "CDRreadTrack\n");
- return -1;
-}
-
/* SPU */
extern long SPUopen(void);
extern long SPUinit(void);
@@ -122,7 +118,6 @@ static const struct {
DUMMY_CDR(CDRsetfilename),
DUMMY_CDR(CDRreadCDDA),
DUMMY_CDR(CDRgetTE),
- DIRECT(PLUGIN_CDR, CDRreadTrack),
/* SPU */
DIRECT_SPU(SPUconfigure),
DIRECT_SPU(SPUabout),
@@ -207,6 +202,16 @@ void *plugin_link(enum builtint_plugins_e id, const char *sym)
return NULL;
}
+void plugin_call_rearmed_cbs(void)
+{
+ extern void *hGPUDriver;
+ void (*rearmed_set_cbs)(const struct rearmed_cbs *cbs);
+
+ rearmed_set_cbs = SysLoadSym(hGPUDriver, "GPUrearmedCallbacks");
+ if (rearmed_set_cbs != NULL)
+ rearmed_set_cbs(&pl_rearmed_cbs);
+}
+
#ifdef PCNT
/* basic profile stuff */