Overhaul to console structure, a bit
This commit is contained in:
+3
-3
@@ -84,7 +84,7 @@ static bool S_XMP_CodecOpenStream (snd_stream_t *stream)
|
||||
|
||||
#if (XMP_VERCODE >= 0x040500)
|
||||
if (xmp_load_module_from_callbacks(c, &stream->fh, file_callbacks) < 0) {
|
||||
Con_DPrintf("Could not load module %s\n", stream->name);
|
||||
console::debug("Could not load module %s\n", stream->name);
|
||||
goto err1;
|
||||
}
|
||||
#else
|
||||
@@ -94,7 +94,7 @@ static bool S_XMP_CodecOpenStream (snd_stream_t *stream)
|
||||
FS_fread(moddata, 1, len, &stream->fh);
|
||||
if (xmp_load_module_from_memory(c, moddata, len) < 0) {
|
||||
Hunk_FreeToLowMark(mark);
|
||||
Con_DPrintf("Could not load module %s\n", stream->name);
|
||||
console::debug("Could not load module %s\n", stream->name);
|
||||
goto err1;
|
||||
}
|
||||
Hunk_FreeToLowMark(mark); /* free original file data */
|
||||
@@ -141,7 +141,7 @@ static int S_XMP_CodecReadStream (snd_stream_t *stream, int bytes, void *buffer)
|
||||
return bytes;
|
||||
}
|
||||
if (r == -XMP_END) {
|
||||
Con_DPrintf("XMP EOF\n");
|
||||
console::debug("XMP EOF\n");
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user