SCI: Cleanup warning messages

This commit is contained in:
sluicebox committed 2024-08-17 17:54:13 -07:00
1 parent c1256d2fc3
commit 29ebd43d2e
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ void Console::postEnter() {
playVideo(*videoDecoder);
_engine->_gfxCursor->kernelShow();
} else
warning("Could not play video %s\n", _videoFile.toString(Common::Path::kNativeSeparator).c_str());
warning("Could not play video %s", _videoFile.toString(Common::Path::kNativeSeparator).c_str());
_videoFile.clear();
_videoFrameDelay = 0;
+2 -2
View File
@@ -246,7 +246,7 @@ ADDetectedGame SciMetaEngineDetection::fallbackDetect(const FileMap &allFiles, c
if (ConfMan.hasKey("always_run_fallback_detection_extern")) {
if (ConfMan.getBool("always_run_fallback_detection_extern") == false) {
warning("SCI: Fallback detection is disabled.");
warning("SCI: Fallback detection is disabled");
return ADDetectedGame();
}
}
@@ -255,7 +255,7 @@ ADDetectedGame SciMetaEngineDetection::fallbackDetect(const FileMap &allFiles, c
if (!enginePlugin) {
static bool warn = true;
if (warn) {
warning("Engine plugin for SCI not present. Fallback detection is disabled.");
warning("Engine plugin for SCI not present. Fallback detection is disabled");
warn = false;
}
return ADDetectedGame();
+1 -1
View File
@@ -626,7 +626,7 @@ void Kernel::dissectScript(int scriptNumber, Vocabulary *vocab) {
Resource *script = _resMan->findResource(ResourceId(kResourceTypeScript, scriptNumber), false);
if (!script) {
warning("dissectScript(): Script not found!\n");
warning("dissectScript(): Script not found");
return;
}
+1 -1
View File
@@ -384,7 +384,7 @@ Common::Error SciEngine::run() {
// we try to find the super class address of the game object, we can't do that earlier
const Object *gameObject = segMan->getObject(_gameObjectAddress);
if (!gameObject) {
warning("Could not get game object, aborting...");
warning("Could not get game object, aborting");
return Common::kUnknownError;
}
+1 -1
View File
@@ -397,7 +397,7 @@ MidiPlayer_Casio::~MidiPlayer_Casio() {
int MidiPlayer_Casio::open(ResourceManager* resMan) {
if (_version < SCI_VERSION_0_LATE || _version > SCI_VERSION_01) {
warning("CASIO: Unsupported SCI version.");
warning("CASIO: Unsupported SCI version");
return -1;
}