From bb45be960d1762a480ec3523d97955754c7ce9f2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 15 May 2009 04:35:47 +0000 Subject: Converted various printf statements to use debug, warning, and error. svn-id: r40588 --- engines/cruise/overlay.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'engines/cruise/overlay.cpp') 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; } -- cgit v1.2.3