diff options
author | Alyssa Milburn | 2012-08-15 09:51:55 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-08-15 09:51:55 +0200 |
commit | 067db748e446fb456584d53bc8e206fadbbac9de (patch) | |
tree | a1a13e54351ba88a91233e6a2870584438d7efdd /engines | |
parent | 92bcb1801a3d25af9f822d901cbd6613ecdff365 (diff) | |
download | scummvm-rg350-067db748e446fb456584d53bc8e206fadbbac9de.tar.gz scummvm-rg350-067db748e446fb456584d53bc8e206fadbbac9de.tar.bz2 scummvm-rg350-067db748e446fb456584d53bc8e206fadbbac9de.zip |
AGI: Replace detector printf usage with logMessage.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agi/detection.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp index 805fe7d366..5f7780bfe3 100644 --- a/engines/agi/detection.cpp +++ b/engines/agi/detection.cpp @@ -20,9 +20,6 @@ * */ -// FIXME: Avoid using printf -#define FORBIDDEN_SYMBOL_EXCEPTION_printf - #include "base/plugins.h" #include "engines/advancedDetector.h" @@ -491,10 +488,14 @@ const ADGameDescription *AgiMetaEngine::fallbackDetect(const FileMap &allFilesXX g_fallbackDesc.desc.gameid = _gameid.c_str(); g_fallbackDesc.desc.extra = _extra.c_str(); - printf("Your game version has been detected using fallback matching as a\n"); - printf("variant of %s (%s).\n", g_fallbackDesc.desc.gameid, g_fallbackDesc.desc.extra); - printf("If this is an original and unmodified version or new made Fanmade game,\n"); - printf("please report any, information previously printed by ScummVM to the team.\n"); + Common::String fallbackWarning; + + fallbackWarning = "Your game version has been detected using fallback matching as a\n"; + fallbackWarning += Common::String::format("variant of %s (%s).\n", g_fallbackDesc.desc.gameid, g_fallbackDesc.desc.extra); + fallbackWarning += "If this is an original and unmodified version or new made Fanmade game,\n"; + fallbackWarning += "please report any, information previously printed by ScummVM to the team.\n"; + + g_system->logMessage(LogMessageType::kWarning, fallbackWarning.c_str()); return (const ADGameDescription *)&g_fallbackDesc; } |