aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2xwiz/gp2xwiz-main.cpp
diff options
context:
space:
mode:
authorJohn Willis2010-08-24 09:29:30 +0000
committerJohn Willis2010-08-24 09:29:30 +0000
commitc2ad45a5cf24d5180e2f4f9f7692ed0ed4fe773b (patch)
treeb7cb0750ffef9f4bf8d1c455f6d9b360038e54d2 /backends/platform/gp2xwiz/gp2xwiz-main.cpp
parentb192de5423f0823b2431b102fe1d1b752f30b29e (diff)
downloadscummvm-rg350-c2ad45a5cf24d5180e2f4f9f7692ed0ed4fe773b.tar.gz
scummvm-rg350-c2ad45a5cf24d5180e2f4f9f7692ed0ed4fe773b.tar.bz2
scummvm-rg350-c2ad45a5cf24d5180e2f4f9f7692ed0ed4fe773b.zip
GP2XWIZ: Graphics code cleanup and start to add support for the GP2X Caanoo device.
svn-id: r52321
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-main.cpp')
-rw-r--r--backends/platform/gp2xwiz/gp2xwiz-main.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-main.cpp b/backends/platform/gp2xwiz/gp2xwiz-main.cpp
index d3c63b4541..547d6a57c9 100644
--- a/backends/platform/gp2xwiz/gp2xwiz-main.cpp
+++ b/backends/platform/gp2xwiz/gp2xwiz-main.cpp
@@ -54,23 +54,26 @@
#include <time.h> // for getTimeAndDate()
/* Dump console info to files. */
-// #define DUMP_STDOUT
+#define DUMP_STDOUT
-int main(int argc, char *argv[]) {
+// Don't use the GP2XWiz main on the Caanoo
+#ifndef CAANOO
+ int main(int argc, char *argv[]) {
- g_system = new OSystem_GP2XWIZ();
- assert(g_system);
+ g_system = new OSystem_GP2XWIZ();
+ assert(g_system);
-#ifdef DYNAMIC_MODULES
- PluginManager::instance().addPluginProvider(new POSIXPluginProvider());
-#endif
+ #ifdef DYNAMIC_MODULES
+ PluginManager::instance().addPluginProvider(new POSIXPluginProvider());
+ #endif
- // Invoke the actual ScummVM main entry point:
- int res = scummvm_main(argc, argv);
- g_system->quit();
+ // Invoke the actual ScummVM main entry point:
+ int res = scummvm_main(argc, argv);
+ g_system->quit();
- return res;
-}
+ return res;
+ }
+#endif /* CAANOO */
void OSystem_GP2XWIZ::initBackend() {