Fix bug #1544799: "ALL: Engine creates launcher entry when failing to launch"
svn-id: r40745
This commit is contained in:
parent
43f58b2869
commit
8e4b31f522
2 changed files with 23 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue