The DIG SFX support - thanks to aquadran
svn-id: r4303
This commit is contained in:
parent
2a53e8f661
commit
4466f1555b
3 changed files with 63 additions and 9 deletions
13
resource.cpp
13
resource.cpp
|
@ -557,13 +557,12 @@ int Scumm::readSoundResource(int type, int idx)
|
|||
basetag = fileReadDword();
|
||||
total_size = fileReadDwordBE();
|
||||
|
||||
if (_gameId == GID_SAMNMAX || _features & GF_AFTER_V7) {
|
||||
if (basetag == MKID('MIDI')) {
|
||||
fileSeek(_fileHandle, -8, SEEK_CUR);
|
||||
fileRead(_fileHandle, createResource(type, idx, total_size + 8),
|
||||
total_size + 8);
|
||||
return 1;
|
||||
}
|
||||
//if (_gameId == GID_SAMNMAX || _features & GF_AFTER_V7) {
|
||||
if (basetag == MKID('MIDI') || basetag == MKID('iMUS')) {
|
||||
fileSeek(_fileHandle, -8, SEEK_CUR);
|
||||
fileRead(_fileHandle, createResource(type, idx, total_size + 8),
|
||||
total_size + 8);
|
||||
return 1;
|
||||
} else if (basetag == MKID('SOU ')) {
|
||||
best_pri = -1;
|
||||
while (pos < total_size) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue