aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/overlay.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2009-05-15 04:35:47 +0000
committerPaul Gilbert2009-05-15 04:35:47 +0000
commitbb45be960d1762a480ec3523d97955754c7ce9f2 (patch)
treed00ec17373c22e123cfe9686bcbd988db9727212 /engines/cruise/overlay.cpp
parent03f5ad5cbbabc93fa0eda4366da5d77da0545014 (diff)
downloadscummvm-rg350-bb45be960d1762a480ec3523d97955754c7ce9f2.tar.gz
scummvm-rg350-bb45be960d1762a480ec3523d97955754c7ce9f2.tar.bz2
scummvm-rg350-bb45be960d1762a480ec3523d97955754c7ce9f2.zip
Converted various printf statements to use debug, warning, and error.
svn-id: r40588
Diffstat (limited to 'engines/cruise/overlay.cpp')
-rw-r--r--engines/cruise/overlay.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cruise/overlay.cpp b/engines/cruise/overlay.cpp
index 03b64b0382..1bca03da1d 100644
--- a/engines/cruise/overlay.cpp
+++ b/engines/cruise/overlay.cpp
@@ -55,7 +55,7 @@ int loadOverlay(const char *scriptName) {
byte *unpackedBuffer;
ovlDataStruct *ovlData;
- printf("Load overlay: %s\n", scriptName);
+ debug(1, "Load overlay: %s", scriptName);
newNumberOfScript = numOfLoadedOverlay;
@@ -93,12 +93,12 @@ int loadOverlay(const char *scriptName) {
strcat(fileName, ".OVL");
- printf("Attempting to load overlay file %s...\n", fileName);
+ debug(1, "Attempting to load overlay file %s...", fileName);
fileIdx = findFileInDisks(fileName);
if (fileIdx < 0) {
- printf("Unable to load overlay %s !\n", scriptName);
+ warning("Unable to load overlay %s !", scriptName);
//releaseScript(scriptName);
return (-18);
}
@@ -126,7 +126,7 @@ int loadOverlay(const char *scriptName) {
loadPackedFileToMem(fileIdx, (uint8 *) unpackedBuffer);
}
- printf("OVL loading done...\n");
+ debug(1, "OVL loading done...");
Common::MemoryReadStream s(unpackedBuffer, unpackedSize);
@@ -644,7 +644,7 @@ int releaseOverlay(const char *name) {
removeScript(overlayIdx, -1, &relHead);
removeScript(overlayIdx, -1, &relHead);
- printf("releaseOverlay: finish !\n");
+ debug(1, "releaseOverlay: finish !");
return 0;
}