[Scummvm-git-logs] scummvm master -> 7448ab2919cddef4216310332d579c6893e08d9e
neuromancer
noreply at scummvm.org
Sat Oct 19 07:08:19 UTC 2024
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:
7448ab2919 FREESCAPE: correctly load sound fxs in eclipse for CGA
Commit: 7448ab2919cddef4216310332d579c6893e08d9e
https://github.com/scummvm/scummvm/commit/7448ab2919cddef4216310332d579c6893e08d9e
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2024-10-19T09:05:40+02:00
Commit Message:
FREESCAPE: correctly load sound fxs in eclipse for CGA
Changed paths:
engines/freescape/games/eclipse/dos.cpp
diff --git a/engines/freescape/games/eclipse/dos.cpp b/engines/freescape/games/eclipse/dos.cpp
index bc3125e381b..818c2b7b421 100644
--- a/engines/freescape/games/eclipse/dos.cpp
+++ b/engines/freescape/games/eclipse/dos.cpp
@@ -91,7 +91,7 @@ void EclipseEngine::loadAssetsDOSFullGame() {
error("Failed to open TOTEE.EXE");
loadMessagesFixedSize(&file, 0x710f, 16, 20);
- loadSoundsFx(&file, 0xd670, 1);
+ loadSoundsFx(&file, 0xd670, 5);
loadSpeakerFxDOS(&file, 0x7396 + 0x200, 0x72a1 + 0x200);
loadFonts(&file, 0xd403);
load8bitBinary(&file, 0x3ce0, 16);
@@ -121,7 +121,7 @@ void EclipseEngine::loadAssetsDOSFullGame() {
error("Failed to open TOTEC.EXE");
loadMessagesFixedSize(&file, 0x594f, 16, 20);
- load1bPCM(&file, 0xd038 - 4);
+ loadSoundsFx(&file, 0xb9f0, 5);
loadFonts(&file, 0xb785);
load8bitBinary(&file, 0x2530, 4);
for (auto &it : _areaMap) {
@@ -220,7 +220,7 @@ void EclipseEngine::loadSoundsFx(Common::SeekableReadStream *file, int offset, i
return;
}
- for (int i = 0; i < 5; i++) {
+ for (int i = 0; i < number; i++) {
_soundsFx[i] = load1bPCM(file, offset);
offset += (_soundsFx[i]->size / 8) + 4;
}
More information about the Scummvm-git-logs
mailing list