diff options
author | Tony Puccinelli | 2010-06-22 18:52:25 +0000 |
---|---|---|
committer | Tony Puccinelli | 2010-06-22 18:52:25 +0000 |
commit | 0edd30de1cf415a33cf02e798bc1714ee91c61e1 (patch) | |
tree | 4b20863a898e5688a7d9ae0d20d7c40ee10816ed /backends/platform/gp2xwiz/gp2xwiz-main.cpp | |
parent | 75c3c8bbae9d5cc1a0428c293f13821added1165 (diff) | |
download | scummvm-rg350-0edd30de1cf415a33cf02e798bc1714ee91c61e1.tar.gz scummvm-rg350-0edd30de1cf415a33cf02e798bc1714ee91c61e1.tar.bz2 scummvm-rg350-0edd30de1cf415a33cf02e798bc1714ee91c61e1.zip |
modified main to use ELF loader
svn-id: r50161
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-main.cpp')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-main.cpp | 13 |
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); |