mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
Update error messages in loadModule().
svn-id: r26131
This commit is contained in:
parent
93e316bec7
commit
247117d9ba
@ -133,7 +133,7 @@ void AGOSEngine::loadModule(uint music) {
|
||||
|
||||
f.open(filename);
|
||||
if (f.isOpen() == false) {
|
||||
error("loadMusic: Can't load module from '%s'", filename);
|
||||
error("loadModule: Can't load module from '%s'", filename);
|
||||
}
|
||||
|
||||
Audio::AudioStream *audioStream;
|
||||
@ -143,7 +143,7 @@ void AGOSEngine::loadModule(uint music) {
|
||||
uint srcSize = f.size();
|
||||
byte *srcBuf = (byte *)malloc(srcSize);
|
||||
if (f.read(srcBuf, srcSize) != srcSize)
|
||||
error("loadMusic: Read failed");
|
||||
error("loadModule: Read failed");
|
||||
|
||||
uint dstSize = READ_BE_UINT32(srcBuf + srcSize - 4);
|
||||
byte *dstBuf = (byte *)malloc(dstSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user