Skip to content

Commit

Permalink
MOHAWK: Check the Book making island external commands against the or…
Browse files Browse the repository at this point in the history
…iginal
  • Loading branch information
bgK authored and sev- committed Jul 3, 2017
1 parent 39b0d53 commit 6b4fe22
Show file tree
Hide file tree
Showing 5 changed files with 196 additions and 156 deletions.
4 changes: 4 additions & 0 deletions engines/mohawk/riven_card.cpp
Expand Up @@ -232,6 +232,10 @@ SLSTRecord RivenCard::getSound(uint16 index) const {
error("Could not find sound %d in card %d", index, _id);
}

void RivenCard::overrideSound(uint16 index, uint16 withIndex) {
_soundList[index].soundIds = _soundList[withIndex].soundIds;
}

void RivenCard::loadHotspots(uint16 id) {
Common::SeekableReadStream *inStream = _vm->getResource(ID_HSPT, id);

Expand Down
2 changes: 2 additions & 0 deletions engines/mohawk/riven_card.h
Expand Up @@ -80,6 +80,8 @@ class RivenCard {
/** Get the card's sound description with the specified index */
SLSTRecord getSound(uint16 index) const;

void overrideSound(uint16 index, uint16 withIndex);

/** Play the card's movie with the specified index */
void playMovie(uint16 index, bool queue = false);

Expand Down

0 comments on commit 6b4fe22

Please sign in to comment.