X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fplugin.c;h=6c83a4477833cfc312dccc2455c60f0986f4a4e7;hp=83eb14036342643e65f95f3d6e6aea6efec629bb;hb=201c21e2ad6be25a4b843d1434eabb432ce72884;hpb=f932e54bc49d2b211a9100f8b6f5385e0eafe64c;ds=inline diff --git a/frontend/plugin.c b/frontend/plugin.c index 83eb1403..6c83a447 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 */