diff options
author | Strangerke | 2011-06-10 23:33:42 +0200 |
---|---|---|
committer | Strangerke | 2011-06-10 23:33:42 +0200 |
commit | 6183658555b95c54eba29a3dc73bd63937dce2cd (patch) | |
tree | 015fd9e84b20c15abf7268941b507c00cba943c9 /engines/tsage/detection.cpp | |
parent | afbfb056f7e93dab083b0fed56aa0723ce825604 (diff) | |
download | scummvm-rg350-6183658555b95c54eba29a3dc73bd63937dce2cd.tar.gz scummvm-rg350-6183658555b95c54eba29a3dc73bd63937dce2cd.tar.bz2 scummvm-rg350-6183658555b95c54eba29a3dc73bd63937dce2cd.zip |
TSAGE: Detect using MD5 based on 5000 bytes instead of unlimited
Diffstat (limited to 'engines/tsage/detection.cpp')
-rw-r--r-- | engines/tsage/detection.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp index 8aae6aac8e..e9e80312b9 100644 --- a/engines/tsage/detection.cpp +++ b/engines/tsage/detection.cpp @@ -73,17 +73,7 @@ enum { class TSageMetaEngine : public AdvancedMetaEngine { public: TSageMetaEngine() : AdvancedMetaEngine(tSage::gameDescriptions, sizeof(tSage::tSageGameDescription), tSageGameTitles) { - // FIXME: Using 0 for md5Bytes means that the whole file will checked. - // this is usually a bad idea, as it can cause terribly slowdowns - // (remember, the MD5 is recomputed whenever the game starts, and also - // for many, many files when doing a "Mass Add" from the launcher. Even - // if the files you currently use for detection are all just a few - // kilobytes, you should still set a value here, just in case in the - // future you'll end up detecting with somewhat bigger files. - // I recommend using the default of 5000 here; if this is not possible, - // try a value like 10000 or 1024*1024, but be prepared to here from - // some suffering users ;) - params.md5Bytes = 0; + params.md5Bytes = 5000; params.singleid = "tsage"; params.guioptions = Common::GUIO_NOSPEECH; } |