[Scummvm-cvs-logs] scummvm master -> 6183658555b95c54eba29a3dc73bd63937dce2cd
Strangerke
Strangerke at scummvm.org
Fri Jun 10 23:35:14 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
6183658555 TSAGE: Detect using MD5 based on 5000 bytes instead of unlimited
Commit: 6183658555b95c54eba29a3dc73bd63937dce2cd
https://github.com/scummvm/scummvm/commit/6183658555b95c54eba29a3dc73bd63937dce2cd
Author: Strangerke (strangerke at scummvm.org)
Date: 2011-06-10T14:33:42-07:00
Commit Message:
TSAGE: Detect using MD5 based on 5000 bytes instead of unlimited
Changed paths:
engines/tsage/detection.cpp
engines/tsage/detection_tables.h
diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp
index 8aae6aa..e9e8031 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;
}
diff --git a/engines/tsage/detection_tables.h b/engines/tsage/detection_tables.h
index dc55f2a..bf163b7 100644
--- a/engines/tsage/detection_tables.h
+++ b/engines/tsage/detection_tables.h
@@ -24,7 +24,7 @@ namespace tSage {
static const tSageGameDescription gameDescriptions[] = {
- // Ringworld English CD version
+ // Ringworld CD and First Wave versions
{
{
"ring",
@@ -38,26 +38,12 @@ static const tSageGameDescription gameDescriptions[] = {
GType_Ringworld,
GF_CD | GF_ALT_REGIONS
},
- // Ringworld First Wave English CD version
- {
- {
- "ring",
- "CD",
- AD_ENTRY1s("ring.rlb", "0a25b4ee58d44a54425c0b47e5096bbc", 37847618),
- Common::EN_ANY,
- Common::kPlatformPC,
- ADGF_NO_FLAGS,
- Common::GUIO_NONE
- },
- GType_Ringworld,
- GF_CD | GF_ALT_REGIONS
- },
// Ringworld English Floppy version
{
{
"ring",
"Floppy",
- AD_ENTRY1s("ring.rlb", "61f78f68a56832ae95fe06748c403234", 8438770),
+ AD_ENTRY1s("ring.rlb", "7b7f0c5b37b58fa5ec06ebb2ca0d0d9d", 8438770),
Common::EN_ANY,
Common::kPlatformPC,
ADGF_NO_FLAGS,
@@ -66,6 +52,8 @@ static const tSageGameDescription gameDescriptions[] = {
GType_Ringworld,
GF_FLOPPY
},
+#if 0
+ // FIXME: Compute new MD5s based on 5000 bytes instead of 0 (unlimited)
// Ringworld English Floppy Demo #1 version
{
{
@@ -80,6 +68,7 @@ static const tSageGameDescription gameDescriptions[] = {
GType_Ringworld,
GF_FLOPPY | GF_DEMO
},
+ // FIXME: Compute new MD5s based on 5000 bytes instead of 0 (unlimited)
// Ringworld English Floppy Demo #2 version
{
{
@@ -94,13 +83,13 @@ static const tSageGameDescription gameDescriptions[] = {
GType_Ringworld,
GF_FLOPPY | GF_DEMO | GF_ALT_REGIONS
},
-
- // Blue Force
+ // FIXME: Compute new MD5s based on 5000 bytes instead of 0 (unlimited)
+ // Blue Force floppy
{
{
"blueforce",
- "",
- AD_ENTRY1s("blue.rlb", "467da43c848cc0e800b547c59d84ccb1", 10032614),
+ "Floppy",
+ AD_ENTRY1s("blue.rlb", "17c3993415e8a2cf93040eef7e88ec93", 1156508),
Common::EN_ANY,
Common::kPlatformPC,
ADGF_NO_FLAGS,
@@ -109,12 +98,13 @@ static const tSageGameDescription gameDescriptions[] = {
GType_BlueForce,
GF_FLOPPY
},
- // Blue Force floppy
+#endif
+ // Blue Force
{
{
"blueforce",
- "Floppy",
- AD_ENTRY1s("blue.rlb", "17c3993415e8a2cf93040eef7e88ec93", 1156508),
+ "",
+ AD_ENTRY1s("blue.rlb", "17eabb456cb1546c66baf1aff387ba6a", 10032614),
Common::EN_ANY,
Common::kPlatformPC,
ADGF_NO_FLAGS,
@@ -128,7 +118,7 @@ static const tSageGameDescription gameDescriptions[] = {
{
"blueforce",
"CD",
- AD_ENTRY1s("blue.rlb", "ac29f38184cb3b874ea18523059872ba", 63863322),
+ AD_ENTRY1s("blue.rlb", "99983f48cb218f1f3760cf2f9a7ef11d", 63863322),
Common::EN_ANY,
Common::kPlatformPC,
ADGF_NO_FLAGS,
More information about the Scummvm-git-logs
mailing list