aboutsummaryrefslogtreecommitdiff
path: root/scumm/bundle.cpp
diff options
context:
space:
mode:
authorMax Horn2002-08-25 10:50:18 +0000
committerMax Horn2002-08-25 10:50:18 +0000
commitec47d8c80c668160e0ee84419314966f763802b9 (patch)
tree7f9ffa782b021d95bbaa28e7236d908ed81546c9 /scumm/bundle.cpp
parent492400e9fa10de948a8bf00e908c2e216c7f171e (diff)
downloadscummvm-rg350-ec47d8c80c668160e0ee84419314966f763802b9.tar.gz
scummvm-rg350-ec47d8c80c668160e0ee84419314966f763802b9.tar.bz2
scummvm-rg350-ec47d8c80c668160e0ee84419314966f763802b9.zip
fixed some endian issues in the new SMUSH decoder; cleanup
svn-id: r4842
Diffstat (limited to 'scumm/bundle.cpp')
-rw-r--r--scumm/bundle.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/scumm/bundle.cpp b/scumm/bundle.cpp
index 14486838b5..9e5f9b4acd 100644
--- a/scumm/bundle.cpp
+++ b/scumm/bundle.cpp
@@ -50,7 +50,7 @@ bool Bundle::openVoiceFile(char *filename)
_voiceFile = fopen(filename, "rb");
if (_voiceFile == NULL) {
- printf("Bundle: Can't open voice bundle file: %s\n", filename);
+ warning("Bundle: Can't open voice bundle file: %s", filename);
return false;
}
@@ -93,7 +93,7 @@ bool Bundle::openMusicFile(char *filename)
_musicFile = fopen(filename, "rb");
if (_musicFile == NULL) {
- printf("Bundle: Can't open music bundle file: %s\n", filename);
+ warning("Bundle: Can't open music bundle file: %s", filename);
return false;
}
@@ -132,7 +132,7 @@ int32 Bundle::decompressVoiceSampleByIndex(int32 index, byte *comp_final)
byte *comp_input, *comp_output;
if (_voiceFile == NULL) {
- printf("Bundle: voice file is not open !\n");
+ warning("Bundle: voice file is not open!");
return 0;
}
@@ -182,7 +182,7 @@ int32 Bundle::decompressMusicSampleByIndex(int32 index, int32 number, byte *comp
byte *comp_input;
if (_musicFile == NULL) {
- printf("Bundle: music file is not open !\n");
+ warning("Bundle: music file is not open!");
return 0;
}
@@ -228,7 +228,7 @@ int32 Bundle::decompressVoiceSampleByName(char *name, byte *comp_final)
int32 final_size = 0, i;
if (_voiceFile == NULL) {
- printf("Bundle: voice file is not open !\n");
+ warning("Bundle: voice file is not open!");
return 0;
}
@@ -246,7 +246,7 @@ int32 Bundle::decompressMusicSampleByName(char *name, int32 number, byte *comp_f
int32 final_size = 0, i;
if (_voiceFile == NULL) {
- printf("Bundle: voice file is not open !\n");
+ warning("Bundle: voice file is not open!");
return 0;
}
@@ -262,7 +262,7 @@ int32 Bundle::decompressMusicSampleByName(char *name, int32 number, byte *comp_f
int32 Bundle::getNumberOfMusicSamplesByIndex(int32 index)
{
if (_musicFile == NULL) {
- printf("Bundle: music file is not open !\n");
+ warning("Bundle: music file is not open!");
return 0;
}
@@ -276,7 +276,7 @@ int32 Bundle::getNumberOfMusicSamplesByName(char *name)
int32 number = 0, i;
if (_musicFile == NULL) {
- printf("Bundle: music file is not open !\n");
+ warning("Bundle: music file is not open!");
return 0;
}
@@ -651,7 +651,7 @@ int32 Bundle::decompressCodec(int32 codec, byte *comp_input, byte *comp_output,
break;
default:
- printf("Bundle: Unknown codec %d!\n", (int)codec);
+ warning("Bundle: Unknown codec %d!", (int)codec);
output_size = 0;
break;
}