Close subtitles when they are not needed anymore.
Only show, clear and hide overlay when needed.
Draw the subtitle at the correct place using the real frame time.
Use srt files instead of txt ones.
* GROOVIE: stop fast video playback capability
stop fast video playback by clicking right mouse button and proceed watching video with normal speed and sound.
* Update script.cpp
* GROOVIE: speedrun mode option
Co-authored-by: Die4Ever <die4ever2005@gmail.com>
Example: if you started Clandestiny and you start the intro, it will set _videoSkipAddress, then interrupt the intro with a directload and then play a video that does not set the _videoSkipAddress such as the start of the bricks puzzle. If you right click during that video then it will attempt to jump to the _videoSkipAddress that the intro set and it will crash.
directSave was clobbering script variables with the savename, so now the savename is handled outside of the script variables. Also o_returnscript now sets _wantAutosave so that the autosave can be executed the next time it's safe, inside of o_inputloopend to ensure the game is in a stable state
Setting it to all 0s meant that the min function gave the wrong results. Needed to top and left to be large numbers so that the min function has the correct affect on them. 9999 is a better choice here than 640 and 480, because before it looked like a full screen rectangle until you realized it was inverted.
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.
The 11th Hour has bugged scripts that sometimes don't set the variables for the GameBook thumbnails correctly, which causes even the original Win95 exe to crash. This happens occasionallyafter watching an end of chapter cutscene. Changing this to a warning means you don't crash, and the missing thumbnail is a minor compromise.
Some scripts, such as the boat puzzle in Clandestiny, were clearing variables right before the o_inputloopend instruction, which was causing a crash because we were deferring our input actions until then. This change means hotspots execute their actions immediately instead of deferring, this is how the old Win95 exe does it.
This commit fixes problems with commit acad766 which disabled the open house
savegame in The 7th Guest and The 11th Hour. These games use slot 0 to write a
special savegame when the game has been completed. This conflicts with ScummVM
autosave functionality, which also uses slot 0 by default. To fix this, the
autosave slot has been moved to slot 24, the last available save slot. The
workaround from commit acad766 for saving in slot 0 has been removed.
The intro music is now fixed by checking for a load of slot 0 and not stopping
the music in this case.