diff options
author | Sven Hesse | 2012-06-27 04:07:32 +0200 |
---|---|---|
committer | Sven Hesse | 2012-06-27 05:14:18 +0200 |
commit | 5ca480aa2e5ffdb0e8fc753aff06e676358dfcfc (patch) | |
tree | dd142618daedb79d55c4b2e77230cdfdc13ad7a3 /engines/advancedDetector.h | |
parent | 76915424962c1288cbd8859bf1a4d401f2769cbd (diff) | |
download | scummvm-rg350-5ca480aa2e5ffdb0e8fc753aff06e676358dfcfc.tar.gz scummvm-rg350-5ca480aa2e5ffdb0e8fc753aff06e676358dfcfc.tar.bz2 scummvm-rg350-5ca480aa2e5ffdb0e8fc753aff06e676358dfcfc.zip |
DETECTOR: Move ADFileProperties(Map) into advancedDetector.h
Diffstat (limited to 'engines/advancedDetector.h')
-rw-r--r-- | engines/advancedDetector.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h index 45a9f183e8..0c3f53f0c5 100644 --- a/engines/advancedDetector.h +++ b/engines/advancedDetector.h @@ -26,6 +26,8 @@ #include "engines/metaengine.h" #include "engines/engine.h" +#include "common/hash-str.h" + #include "common/gui_options.h" // FIXME: Temporary hack? namespace Common { @@ -46,6 +48,20 @@ struct ADGameFileDescription { }; /** + * A record describing the properties of a file. Used on the existing + * files while detecting a game. + */ +struct ADFileProperties { + int32 size; + Common::String md5; +}; + +/** + * A map of all relevant existing files in a game directory while detecting. + */ +typedef Common::HashMap<Common::String, ADFileProperties, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> ADFilePropertiesMap; + +/** * A shortcut to produce an empty ADGameFileDescription record. Used to mark * the end of a list of these. */ |