aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-main.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-main.cpp b/backends/platform/gp2xwiz/gp2xwiz-main.cpp
index 394c3090c3..fa08cff9f7 100644
--- a/backends/platform/gp2xwiz/gp2xwiz-main.cpp
+++ b/backends/platform/gp2xwiz/gp2xwiz-main.cpp
@@ -41,8 +41,8 @@
#include "common/file.h"
#include "base/main.h"
+#include "backends/plugins/gp2xwiz/gp2xwiz-provider.h"
#include "backends/saves/default/default-saves.h"
-
#include "backends/timer/default/default-timer.h"
#include "sound/mixer_intern.h"
@@ -54,6 +54,9 @@
#include <sys/stat.h>
#include <time.h> // for getTimeAndDate()
+//comment this out to use POSIX plugins
+#define ELF_LOADER
+
/* Dump console info to files. */
// #define DUMP_STDOUT
@@ -63,8 +66,14 @@ int main(int argc, char *argv[]) {
assert(g_system);
#ifdef DYNAMIC_MODULES
+
+#ifdef ELF_LOADER
+ PluginManager::instance().addPluginProvider(new GP2XWIZPluginProvider());
+#else
PluginManager::instance().addPluginProvider(new POSIXPluginProvider());
-#endif
+#endif /* ELF_LOADER */
+
+#endif /* DYNAMIC_MODULES */
// Invoke the actual ScummVM main entry point:
int res = scummvm_main(argc, argv);