[Scummvm-cvs-logs] scummvm master -> 6c51635bb268aef450d4819877e5bb4ee328557d
tramboi
bertrand_augereau at yahoo.fr
Thu Nov 17 18:12:33 CET 2011
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:
6c51635bb2 DREAWMEB: Cleaning of the sound loading in 'readsetdata'
Commit: 6c51635bb268aef450d4819877e5bb4ee328557d
https://github.com/scummvm/scummvm/commit/6c51635bb268aef450d4819877e5bb4ee328557d
Author: Bertrand Augereau (bertrand_augereau at yahoo.fr)
Date: 2011-11-17T09:11:31-08:00
Commit Message:
DREAWMEB: Cleaning of the sound loading in 'readsetdata'
Changed paths:
engines/dreamweb/stubs.cpp
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 67be4e2..1a29430 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2075,13 +2075,11 @@ void DreamGenContext::readsetdata() {
data.word(kCurrentset) = ax;
if (data.byte(kSoundint) == 0xff)
return;
- dx = kVolumetabname;
- openfile();
- cx = 2048-256;
- ds = data.word(kSoundbuffer);
- dx = 16384;
- readfromfile();
- closefile();
+ Common::String name((const char*)cs.ptr(kVolumetabname, 0));
+ engine->openFile(name);
+ uint8 *volumeTab = segRef(data.word(kSoundbuffer)).ptr(16384, 0);
+ engine->readFromFile(volumeTab, 2048-256);
+ engine->closeFile();
}
} /*namespace dreamgen */
More information about the Scummvm-git-logs
mailing list