diff options
author | Max Horn | 2011-06-10 22:39:23 +0200 |
---|---|---|
committer | Max Horn | 2011-06-10 22:39:23 +0200 |
commit | 6a6b9aabeaca1737000401c6099fd39b00eb351e (patch) | |
tree | f484c0de72bf7197de36e8fef0b21907d2271ac5 /engines | |
parent | 7ab553d72a14c04be1aa7e787eeef360be7bb619 (diff) | |
download | scummvm-rg350-6a6b9aabeaca1737000401c6099fd39b00eb351e.tar.gz scummvm-rg350-6a6b9aabeaca1737000401c6099fd39b00eb351e.tar.bz2 scummvm-rg350-6a6b9aabeaca1737000401c6099fd39b00eb351e.zip |
TSAGE: Elaborate on one FIXME I previously added, resolve another
Turns out params.depth == 0 is the same as == 1
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/detection.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp index 57ba9970d6..8aae6aac8e 100644 --- a/engines/tsage/detection.cpp +++ b/engines/tsage/detection.cpp @@ -73,10 +73,19 @@ enum { class TSageMetaEngine : public AdvancedMetaEngine { public: TSageMetaEngine() : AdvancedMetaEngine(tSage::gameDescriptions, sizeof(tSage::tSageGameDescription), tSageGameTitles) { - params.md5Bytes = 0; // FIXME ???? + // 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.singleid = "tsage"; params.guioptions = Common::GUIO_NOSPEECH; - params.depth = 0; // FIXME ???? } virtual const char *getName() const { |