aboutsummaryrefslogtreecommitdiff
path: root/gui/massadd.h
diff options
context:
space:
mode:
authorMax Horn2008-06-11 06:22:02 +0000
committerMax Horn2008-06-11 06:22:02 +0000
commit42427f9a4ec2ec768d355729bbdd77f52ddb37b9 (patch)
treecd7df321e6704ec4f9ee7de6319d38197e8c9449 /gui/massadd.h
parentfefad792495e0fbd45d120a83b19090e3b7a0cf3 (diff)
downloadscummvm-rg350-42427f9a4ec2ec768d355729bbdd77f52ddb37b9.tar.gz
scummvm-rg350-42427f9a4ec2ec768d355729bbdd77f52ddb37b9.tar.bz2
scummvm-rg350-42427f9a4ec2ec768d355729bbdd77f52ddb37b9.zip
Modified mass detector to not re-add already configured games (that is, if there is an existing entry with identical path, gameid, platform, language, then do not add a new one)
svn-id: r32664
Diffstat (limited to 'gui/massadd.h')
-rw-r--r--gui/massadd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/massadd.h b/gui/massadd.h
index 29d24ca9a5..e0eff75c64 100644
--- a/gui/massadd.h
+++ b/gui/massadd.h
@@ -27,7 +27,10 @@
#include "gui/dialog.h"
#include "common/fs.h"
+#include "common/hashmap.h"
#include "common/stack.h"
+#include "common/str.h"
+#include "common/hash-str.h"
namespace GUI {
@@ -45,6 +48,13 @@ private:
Common::Stack<FilesystemNode> _scanStack;
GameList _games;
+ /**
+ * Map each path occuring in the config file to the target(s) using that path.
+ * Used to detect whether a potential new target is already present in the
+ * config manager.
+ */
+ Common::HashMap<Common::String, Common::StringList> _pathToTargets;
+
int _dirsScanned;
Widget *_okButton;