Skip to content

Commit

Permalink
SOUND: Index XSB cues by name as well
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Dec 28, 2018
1 parent 5d1e3e9 commit 83bcbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sound/xactsoundbank_ascii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ void XACTSoundBank_ASCII::load(Common::SeekableReadStream &xsb) {
tokenizer.nextChunk(xsb);

cue->name = tokens[0];
_cueMap[cue->name] = &*cue;

cue->variationSelectMethod = getNumber(tokens[1]);
const bool hasTransitions = tokens[2] == "1";

Expand Down
1 change: 1 addition & 0 deletions src/sound/xactsoundbank_binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ void XACTSoundBank_Binary::readCues(Common::SeekableReadStream &xsb, uint32 xsbF
xsb.seek(offsetName);

cue.name = Common::readString(xsb, Common::kEncodingASCII);
_cueMap[cue.name] = &cue;
}

if (offsetEntry != 0xFFFFFFFF) {
Expand Down

0 comments on commit 83bcbf3

Please sign in to comment.