[Scummvm-git-logs] scummvm master -> 81925cbde4d47be307ab41b9de0d95ee81ad2a56
Die4Ever
noreply at scummvm.org
Mon Dec 6 03:51:05 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
81925cbde4 GROOVIE: T11H play Mr Death song
Commit: 81925cbde4d47be307ab41b9de0d95ee81ad2a56
https://github.com/scummvm/scummvm/commit/81925cbde4d47be307ab41b9de0d95ee81ad2a56
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2021-12-05T21:50:29-06:00
Commit Message:
GROOVIE: T11H play Mr Death song
Patch to play the Mr Death song when the skulls ask you to adjust your brightness. Normally this would play in the launcher for the game but that isn't written in Groovie script.
Changed paths:
engines/groovie/script.cpp
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp
index 5d4d55056a..407ed083e6 100644
--- a/engines/groovie/script.cpp
+++ b/engines/groovie/script.cpp
@@ -206,6 +206,21 @@ bool Script::loadScript(Common::String filename) {
_code[0x0795] = 0x41;
_code[0x078A] = 0x40;
_code[0x079B] = 0x3F;
+ } else if (_version == kGroovieT11H && filename.equals("script.grv") && _codeSize == 62447) {
+ // don't sleep before showing the skulls
+ memset(_code + 0x17, 1, 0x1F - 0x17); // set nop
+ // when the skulls ask you to adjust your brightness, play the song Mr Death
+ memset(_code + 0x25, 1, 0x2F - 0x25);// set nop
+ _code[0x25] = 0x56;// o2_playsound
+ // o2_playsound resource id 851, 32bit uint
+ _code[0x26] = 0x53;
+ _code[0x27] = 0x03;
+ _code[0x28] = 0;
+ _code[0x29] = 0;
+ // o2_playsound loops = 0 for infinite
+ _code[0x2A] = 0;
+ // o2_playsound val3
+ _code[0x2B] = 0;
}
// Initialize the script
More information about the Scummvm-git-logs
mailing list