aboutsummaryrefslogtreecommitdiff
path: root/engines/advancedDetector.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-03 13:44:40 +0200
committerBastien Bouclet2018-06-03 13:48:31 +0200
commit643ce81cf7cac87a102cd49a7e23a0d93724b3ce (patch)
treec8914cba082a9b05a53469df7a3cdb8d3683d15f /engines/advancedDetector.cpp
parent56d2bf77bae50bb1cb0eab01841cd1a9e7057f30 (diff)
downloadscummvm-rg350-643ce81cf7cac87a102cd49a7e23a0d93724b3ce.tar.gz
scummvm-rg350-643ce81cf7cac87a102cd49a7e23a0d93724b3ce.tar.bz2
scummvm-rg350-643ce81cf7cac87a102cd49a7e23a0d93724b3ce.zip
BASE: Remove temporary targets when they fail to launch
Prevents invalid targets created from the command line to show up in the launcher. Fixes Trac#2788.
Diffstat (limited to 'engines/advancedDetector.cpp')
-rw-r--r--engines/advancedDetector.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 3167dd9581..6f4efcfb57 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -236,18 +236,6 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
path = ConfMan.get("path");
} else {
path = ".";
-
- // This situation may happen only when game was
- // launched from a command line with wrong target and
- // no path was provided.
- //
- // A dummy entry will get created and will keep game path
- // We mark this entry, so it will not be added to the
- // config file.
- //
- // Fixes bug #1544799
- ConfMan.setBool("autoadded", true);
-
warning("No path was provided. Assuming the data files are in the current directory");
}
Common::FSNode dir(path);