BASE: Suppress pointless warning message (fixes bug #3291522)

This commit is contained in:
Max Horn 2011-05-05 17:43:33 +02:00
parent 9c60ba06bc
commit b2748520bb

View File

@ -351,7 +351,8 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
// TODO: deal with settings that require plugins to be loaded
res = Base::processSettings(command, settings);
if (res.getCode() != Common::kArgumentNotProcessed) {
warning("%s", res.getDesc().c_str());
if (res.getCode() != Common::kNoError)
warning("%s", res.getDesc().c_str());
return res.getCode();
}