aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp10
-rw-r--r--base/main.h4
2 files changed, 2 insertions, 12 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 2b3ecfabb3..d82b238b97 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -230,11 +230,7 @@ static int runGame(GameDetector &detector, OSystem &system, const Common::String
return result;
}
-#ifdef _WIN32_WCE
-extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]) {
-#else
extern "C" int scummvm_main(int argc, char *argv[]) {
-#endif
Common::String specialDebug;
Common::String command;
bool running = true;
@@ -291,14 +287,12 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// Process the remaining command line settings
-#ifndef _WIN32_WCE
GameDetector detector;
-#endif
detector.processSettings(command, settings);
-#ifdef __SYMBIAN32__
+#if defined(__SYMBIAN32__) || defined(_WIN32_WCE)
// init keymap support here: we wanna move this somewhere else?
- GUI::Actions::init(detector);
+ GUI::Actions::init(detector._gameid);
#endif
#ifdef PALMOS_68K
diff --git a/base/main.h b/base/main.h
index 06b7e2cb5f..8abf5038a0 100644
--- a/base/main.h
+++ b/base/main.h
@@ -29,10 +29,6 @@
//
// The scummvm main entry point, to be invoked by ports
//
-#ifdef _WIN32_WCE
-extern "C" int scummvm_main(GameDetector &detector, int argc, char *argv[]);
-#else
extern "C" int scummvm_main(int argc, char *argv[]);
-#endif
#endif