aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2008-09-01 17:30:03 +0000
committerMax Horn2008-09-01 17:30:03 +0000
commit027ae0a6f6bd7e7dfbfe6f7df0824596894f51ae (patch)
tree205993ffb25dcb2311e62b1871431eb6cf62185e /base
parent2db5747642446bad3e1824afd0358f51c1965c20 (diff)
parent852bc9dbb750b9995d31e70f4158c97d3758c46f (diff)
downloadscummvm-rg350-027ae0a6f6bd7e7dfbfe6f7df0824596894f51ae.tar.gz
scummvm-rg350-027ae0a6f6bd7e7dfbfe6f7df0824596894f51ae.tar.bz2
scummvm-rg350-027ae0a6f6bd7e7dfbfe6f7df0824596894f51ae.zip
First part of GSoC2008 RTL branch merge
svn-id: r34241
Diffstat (limited to 'base')
-rw-r--r--base/commandLine.cpp1
-rw-r--r--base/main.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp
index f8ca8a90cd..47ba3cb9ed 100644
--- a/base/commandLine.cpp
+++ b/base/commandLine.cpp
@@ -56,6 +56,7 @@ static const char HELP_STRING[] =
" -h, --help Display a brief help text and exit\n"
" -z, --list-games Display list of supported games and exit\n"
" -t, --list-targets Display list of configured targets and exit\n"
+ " --list-saves=TARGET Display a list of savegames for the game (TARGET) specified\n"
"\n"
" -c, --config=CONFIG Use alternate configuration file\n"
" -p, --path=PATH Path to where the game is installed\n"
diff --git a/base/main.cpp b/base/main.cpp
index 115a920f36..4283b6cacf 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -38,6 +38,7 @@
#include "base/version.h"
#include "common/config-manager.h"
+#include "common/events.h"
#include "common/file.h"
#include "common/fs.h"
#include "common/system.h"
@@ -200,7 +201,8 @@ static int runGame(const EnginePlugin *plugin, OSystem &system, const Common::St
// Reset the file/directory mappings
Common::File::resetDefaultDirectories();
- return 0;
+ // If result=1 return to the launcher, else quit ScummVM
+ return result;
}
@@ -286,6 +288,10 @@ extern "C" int scummvm_main(int argc, char *argv[]) {
// TODO: We should keep running if starting the selected game failed
// (so instead of just quitting, show a nice error dialog to the
// user and let him pick another game).
+
+ // Reset RTL flag in case we want to load another engine
+ g_system->getEventManager()->resetRTL();
+
if (result == 0)
break;