From 5e2d023aa83fe66347b921f1ef2cc769f432c8d0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 5 May 2006 00:00:39 +0000 Subject: Moved PalmOS specific call to ArgsFree up to the last point where argv is used (hopefully that's correct :-) svn-id: r22351 --- base/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'base') diff --git a/base/main.cpp b/base/main.cpp index 2137650736..f9ec3449ea 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -287,6 +287,9 @@ extern "C" int scummvm_main(int argc, char *argv[]) { // Parse the command line Common::StringMap settings; command = Base::parseCommandLine(settings, argc, argv); +#ifdef PALMOS_68K + ArgsFree(argv); +#endif // Load the config file (possibly overriden via command line): if (settings.contains("config")) { @@ -325,10 +328,6 @@ extern "C" int scummvm_main(int argc, char *argv[]) { GUI::Actions::init(); #endif -#ifdef PALMOS_68K - ArgsFree(argv); -#endif - // Init the backend. Must take place after all config data (including // the command line params) was read. system.initBackend(); -- cgit v1.2.3