diff options
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/stubs.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp index 67be4e2598..1a2943043c 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 */ |