Skip to content

Commit

Permalink
SHERLOCK: Implement cmdNextSong
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 25, 2015
1 parent 5513f72 commit 1f9f01c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion engines/sherlock/talk.cpp
Expand Up @@ -2051,7 +2051,24 @@ TattooTalk::TattooTalk(SherlockEngine *vm) : Talk(vm) {
}

OpcodeReturn TattooTalk::cmdMouseOnOff(const byte *&str) { error("TODO: script opcode"); }
OpcodeReturn TattooTalk::cmdNextSong(const byte *&str) { error("TODO: script opcode"); }

OpcodeReturn TattooTalk::cmdNextSong(const byte *&str) {
Sound &sound = *_vm->_sound;

// Get the name of the next song to play
++str;
sound._nextSongName = "";
for (int idx = 0; idx < 8; ++idx) {
if (str[idx] != '~')
sound._nextSongName += str[idx];
else
break;
}
str += 7;

return RET_SUCCESS;
}

OpcodeReturn TattooTalk::cmdNPCLabelGoto(const byte *&str) { error("TODO: script opcode"); }
OpcodeReturn TattooTalk::cmdNPCLabelIfFlagGoto(const byte *&str) { error("TODO: script opcode"); }
OpcodeReturn TattooTalk::cmdNPCLabelSet(const byte *&str) { error("TODO: script opcode"); }
Expand Down

0 comments on commit 1f9f01c

Please sign in to comment.