Skip to content

Commit

Permalink
SCUMM: Use platform from candidate to generate unknown version message
Browse files Browse the repository at this point in the history
If we don't provide the platform and the candidate is a Steam version
it errors out with 'Unable to find Steam executable from detection
pattern!' message.
  • Loading branch information
criezy committed Oct 1, 2016
1 parent 7c07a6e commit 403d194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/scumm/detection.cpp
Expand Up @@ -1124,7 +1124,7 @@ Common::Error ScummMetaEngine::createInstance(OSystem *syst, Engine **engine) co

md5Warning += Common::String::format(" SCUMM gameid '%s', file '%s', MD5 '%s'\n\n",
res.game.gameid,
generateFilenameForDetection(res.fp.pattern, res.fp.genMethod, Common::kPlatformUnknown).c_str(),
generateFilenameForDetection(res.fp.pattern, res.fp.genMethod, res.game.platform).c_str(),
res.md5.c_str());

g_system->logMessage(LogMessageType::kWarning, md5Warning.c_str());
Expand Down

0 comments on commit 403d194

Please sign in to comment.