[Scummvm-git-logs] scummvm master -> 318dda4884b5c25b67be8d97d305058b0d4a186f
NMIError
noreply at scummvm.org
Fri Nov 24 20:26:22 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
318dda4884 ULTIMA/NUVIE: Error msg when FM-Towns load fails
Commit: 318dda4884b5c25b67be8d97d305058b0d4a186f
https://github.com/scummvm/scummvm/commit/318dda4884b5c25b67be8d97d305058b0d4a186f
Author: Coen Rampen (crampen at gmail.com)
Date: 2023-11-24T21:26:16+01:00
Commit Message:
ULTIMA/NUVIE: Error msg when FM-Towns load fails
Changed paths:
engines/ultima/nuvie/sound/towns_sfx_manager.cpp
diff --git a/engines/ultima/nuvie/sound/towns_sfx_manager.cpp b/engines/ultima/nuvie/sound/towns_sfx_manager.cpp
index 4f72c6d7b36..e679cd12ec6 100644
--- a/engines/ultima/nuvie/sound/towns_sfx_manager.cpp
+++ b/engines/ultima/nuvie/sound/towns_sfx_manager.cpp
@@ -81,14 +81,18 @@ void TownsSfxManager::loadSound1Dat() {
config->pathFromValue("config/townsdir", "sounds1.dat", filename);
unsigned char *slib32_data = decompressor.decompress_file(filename, slib32_len);
- if (slib32_len == 0)
+ if (slib32_len == 0) {
+ error("Failed to load FM-Towns sound file %s", filename.c_str());
return;
+ }
iobuf.open(slib32_data, slib32_len);
free(slib32_data);
- if (!lib.open(&iobuf, 4))
+ if (!lib.open(&iobuf, 4)) {
+ error("Failed to load FM-Towns sound file %s", filename.c_str());
return;
+ }
uint8 i;
for (i = 0; i < TOWNS_SFX_SOUNDS1_SIZE; i++) {
More information about the Scummvm-git-logs
mailing list