diff options
author | Alyssa Milburn | 2012-08-15 09:47:19 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-08-15 09:48:50 +0200 |
commit | 92bcb1801a3d25af9f822d901cbd6613ecdff365 (patch) | |
tree | 86abc295554f1c18b5263c7836750ffc61f51d2f /engines/scumm | |
parent | b5a63d6709e87005c9b02fa02d4ae8802b7ce915 (diff) | |
download | scummvm-rg350-92bcb1801a3d25af9f822d901cbd6613ecdff365.tar.gz scummvm-rg350-92bcb1801a3d25af9f822d901cbd6613ecdff365.tar.bz2 scummvm-rg350-92bcb1801a3d25af9f822d901cbd6613ecdff365.zip |
SCUMM: Replace detector printf usage with logMessage.
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/detection.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp index 87305921c9..5404c7f8b1 100644 --- a/engines/scumm/detection.cpp +++ b/engines/scumm/detection.cpp @@ -20,9 +20,6 @@ * */ -// FIXME: Avoid using printf -#define FORBIDDEN_SYMBOL_EXCEPTION_printf - #include "base/plugins.h" #include "common/archive.h" @@ -1066,15 +1063,19 @@ Common::Error ScummMetaEngine::createInstance(OSystem *syst, Engine **engine) co // unknown MD5, or with a medium debug level in case of a known MD5 (for // debugging purposes). if (!findInMD5Table(res.md5.c_str())) { - printf("Your game version appears to be unknown. If this is *NOT* a fan-modified\n"); - printf("version (in particular, not a fan-made translation), please, report the\n"); - printf("following data to the ScummVM team along with name of the game you tried\n"); - printf("to add and its version/language/etc.:\n"); + Common::String md5Warning; + + md5Warning = "Your game version appears to be unknown. If this is *NOT* a fan-modified\n"; + md5Warning += "version (in particular, not a fan-made translation), please, report the\n"; + md5Warning += "following data to the ScummVM team along with name of the game you tried\n"; + md5Warning += "to add and its version/language/etc.:\n"; - printf(" SCUMM gameid '%s', file '%s', MD5 '%s'\n\n", + md5Warning += Common::String::format(" SCUMM gameid '%s', file '%s', MD5 '%s'\n\n", res.game.gameid, generateFilenameForDetection(res.fp.pattern, res.fp.genMethod).c_str(), res.md5.c_str()); + + g_system->logMessage(LogMessageType::kWarning, md5Warning.c_str()); } else { debug(1, "Using MD5 '%s'", res.md5.c_str()); } |