diff options
-rw-r--r-- | engines/cruise/function.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 7df674a3d3..a27fa7a044 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -1647,9 +1647,16 @@ int16 Op_SetVolume(void) { } int16 Op_SongExist(void) { - char* songName = (char*)popPtr(); + const char *songName = (char*)popPtr(); - warning("Unimplemented \"Op_SongExist\": %s", songName); + if (songName) { + char name[33]; + strcpy(name, songName); + strToUpper(name); + + if (!strcmp(_vm->sound().musicName(), name)) + return 1; + } return 0; } |