aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorEugene Sandulenko2009-05-20 21:00:52 +0000
committerEugene Sandulenko2009-05-20 21:00:52 +0000
commit8e4b31f5220d73a211a2e822c27989fd96b65030 (patch)
treed56c46b59165289fd79f038a3c5406cab05a1a32 /base
parent43f58b2869f97c055f56aa14f6eb4153d272b2b3 (diff)
downloadscummvm-rg350-8e4b31f5220d73a211a2e822c27989fd96b65030.tar.gz
scummvm-rg350-8e4b31f5220d73a211a2e822c27989fd96b65030.tar.bz2
scummvm-rg350-8e4b31f5220d73a211a2e822c27989fd96b65030.zip
Fix bug #1544799: "ALL: Engine creates launcher entry when failing to launch"
svn-id: r40745
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 1c14e20f76..e45af96c12 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -144,6 +144,17 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const
ConfMan.getActiveDomainName().c_str(),
dir.getPath().c_str()
);
+
+ // Autoadded is set only when no path was provided and
+ // the game is run from command line.
+ //
+ // Thus, we remove this garbage entry
+ //
+ // Fixes bug #1544799
+ if (ConfMan.hasKey("autoadded")) {
+ ConfMan.removeGameDomain(ConfMan.getActiveDomainName().c_str());
+ }
+
return err;
}