summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-06-29 23:38:03 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-06-29 23:38:03 +0000
commitdd5d3f652f99096ced7313d3f2179aa36501f1f5 (patch)
tree5b8abf7c7995023132499beedc9ae7e9af088d74 /apps/plugin.c
parentba5dfbd71ef9ea1a1c786d02e10311decc9ced64 (diff)
downloadrockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.tar.gz
rockbox-dd5d3f652f99096ced7313d3f2179aa36501f1f5.zip
Changed win32 simulator to use plugin.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3784 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 020bf61b1a..7f91415755 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -32,9 +32,14 @@
32#include "lang.h" 32#include "lang.h"
33 33
34#ifdef SIMULATOR 34#ifdef SIMULATOR
35#include <dlfcn.h> 35 #include <debug.h>
36#include <debug.h> 36 #ifdef WIN32
37#define PREFIX(_x_) x11_ ## _x_ 37 #include "plugin-win32.h"
38 #define PREFIX(_x_) _x_
39 #else
40 #include <dlfcn.h>
41 #define PREFIX(_x_) x11_ ## _x_
42 #endif
38#else 43#else
39#define PREFIX(_x_) _x_ 44#define PREFIX(_x_) _x_
40#endif 45#endif
@@ -141,7 +146,11 @@ int plugin_load(char* plugin, void* parameter)
141 lcd_update(); 146 lcd_update();
142#endif 147#endif
143#ifdef SIMULATOR 148#ifdef SIMULATOR
149#ifdef WIN32
150 snprintf(path, sizeof path, "%s", plugin);
151#else
144 snprintf(path, sizeof path, "archos%s", plugin); 152 snprintf(path, sizeof path, "archos%s", plugin);
153#endif
145 pd = dlopen(path, RTLD_NOW); 154 pd = dlopen(path, RTLD_NOW);
146 if (!pd) { 155 if (!pd) {
147 snprintf(buf, sizeof buf, "Can't open %s", plugin); 156 snprintf(buf, sizeof buf, "Can't open %s", plugin);