aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorChris Apers2006-04-11 18:19:54 +0000
committerChris Apers2006-04-11 18:19:54 +0000
commitf61d74532b7cb6902db4f01f4e1f429469568a23 (patch)
treea2ce69b5dc054a1089f4c86cc8112e4ddd5be277 /base
parenta8e772fa54b3b0d315983e5b82dbc12437ebc6db (diff)
downloadscummvm-rg350-f61d74532b7cb6902db4f01f4e1f429469568a23.tar.gz
scummvm-rg350-f61d74532b7cb6902db4f01f4e1f429469568a23.tar.bz2
scummvm-rg350-f61d74532b7cb6902db4f01f4e1f429469568a23.zip
Fixed crash with PalmOS ARM version : global objects are allocated but constructors are not called - anyway this var is useless with PalmOS version
svn-id: r21805
Diffstat (limited to 'base')
-rw-r--r--base/gameDetector.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp
index a08ce3efb0..bcb9d9d5cc 100644
--- a/base/gameDetector.cpp
+++ b/base/gameDetector.cpp
@@ -128,8 +128,11 @@ static const char HELP_STRING[] =
;
#endif
-
+#if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG))
static Common::String s_appName("scummvm");
+#else
+static const char *s_appName = "scummvm";
+#endif
static void usage(const char *s, ...) GCC_PRINTF(1, 2);
@@ -141,7 +144,9 @@ static void usage(const char *s, ...) {
vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
+#if !(defined(PALMOS_ARM) || defined(PALMOS_DEBUG))
printf(USAGE_STRING, s_appName.c_str(), buf, s_appName.c_str(), s_appName.c_str());
+#endif
exit(1);
}