Commit graph

107 commits

Author SHA1 Message Date
Eugene Sandulenko
5dcdfd2600
GOB: Dual-license the gob engine under LGPL
The major contributors provided their consent:
DrMcCoy, Strangerke, sdelamarre, sev.

The goal is to allow the re-release of this code under
Switch, which is incompatible with pure GPL
2024-01-08 01:44:04 +01:00
Simon Delamarre
a7da058940 GOB: Allow to skip the "bird table" animation in Adibou2 hollow tree
This animation is CPU-bounded in the original, making it run too fast on recent machines.
In our implementation, however, there are some sleep() calls on the way making it run 
slightly too slow, so we make it skippable as a workaround.
2023-10-24 23:15:36 +02:00
Simon Delamarre
446e2a96a8 GOB: Fix formatting of some lengthy "if" clauses 2023-10-24 23:15:36 +02:00
Simon Delamarre
92f1d69939
GOB: restrict the Adibou2 "free bananas" workaround to versions confirmed without unwanted side effect 2022-12-02 11:44:35 +01:00
Simon Delamarre
736223cb7b
GOB: work around a bug in Adibou2 script of "pleasant/unpleasant" game
The script accessed uninitialized parts of an array (index 0 while the array was initialized from index 1).
2022-12-02 11:44:31 +01:00
Simon Delamarre
b907d2afa6
GOB: workaround for a bug in Adibou2 scripts of "cooking" activity 2022-12-02 11:44:29 +01:00
Simon Delamarre
46f23e34bf
GOB: another fillRect mode in Adibou2 (replace a specific color)
Fixes choice highlighting in "Adibou station" game
2022-12-02 11:44:28 +01:00
Simon Delamarre
a31b588ad0
GOB: fix "paint" game in Adibou2
All tools now work correctly, except "text tool" which is still buggy.
Most missing graphical primitives had already stubs in "Inter_Playtoons", implement them there instead of "Inter_v7".
2022-12-02 11:44:28 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
8d91d66a15 GOB: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
D G Turner
799a088b6e GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-12 17:31:01 +00:00
Johannes Schickel
ea21bc939a GOB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
b92a087857 GOB: Remove unused include. 2011-09-06 14:34:07 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Sven Hesse
d635c7b950 GOB: Fix Inter_v6::probe16bitMusic()
svn-id: r55643
2011-01-30 00:01:43 +00:00
Sven Hesse
65bc46d3ab GOB: Add Script::evalInt() and Script::evalString()
svn-id: r55634
2011-01-29 22:47:53 +00:00
Sven Hesse
ce3d4b5d1b GOB: Add GobEngine::isCurrentTot()
svn-id: r55630
2011-01-29 22:45:51 +00:00
Sven Hesse
0c3a33c354 GOB: Change _curTotFile and _totToLoad into Common::String
svn-id: r55629
2011-01-29 22:45:15 +00:00
Sven Hesse
14678f059b GOB: Move OpcodeFunc's return flag into its parameter
To make the meaning of the flag more clear and make the func
opcodes more similar to draw and gob opcodes.

svn-id: r55627
2011-01-29 22:44:06 +00:00
Sven Hesse
e237ff3628 GOB: Some Addy gameflow stubs
svn-id: r55562
2011-01-27 13:26:34 +00:00
Sven Hesse
bf60f06105 GOB: Add a workaround for taking the music sheet from Dr. Dramish's car
svn-id: r55530
2011-01-25 13:00:38 +00:00
Sven Hesse
9eea8c6bca GOB: Wait for the exact moment of the video sound's end
This should fix all cut-off sound issues in Urban Runner

svn-id: r55503
2011-01-24 14:10:15 +00:00
Sven Hesse
411d41d3d0 GOB: Change the NOCD workaround for Urban Runner a bit
Seems like the game does close the CD1.ITK too, so we just
open all ITKs right at the start, lest it might blow up when
it wants to close the top ITK and that's actually CD4.

svn-id: r55461
2011-01-23 11:00:57 +00:00
Sven Hesse
00cabdad11 GOB: Only let one video with sound play at a time
svn-id: r55444
2011-01-22 19:37:25 +00:00
Sven Hesse
0722df9472 GOB: Hacking in multiple live videos
Needed for Bambou. The narrator voice and the "Do you want to quit?"
voices are live videos that should continue while the live video
buttons are playing.

svn-id: r55443
2011-01-22 19:28:23 +00:00
Sven Hesse
5b4183fa27 GOB: Or actually, *this* should be the correct loop flag handling
svn-id: r55438
2011-01-22 17:19:58 +00:00
Sven Hesse
3f162962aa GOB: Oops, -10 = close video, < -10 = looping
svn-id: r55437
2011-01-22 16:56:02 +00:00
Sven Hesse
7fee6f9740 GOB: Proper live video looping
Fixes the Yes/No robots in Bambou

svn-id: r55436
2011-01-22 16:48:51 +00:00
Sven Hesse
cbbafc962d GOB: Extend the good-measure wait to all videos with sound
Fixes a glitch in Bambou, where the intro movie is cut off to
soon.

svn-id: r55432
2011-01-22 16:29:54 +00:00
Sven Hesse
6e254c4f01 GOB: Actually, startFrame == -2 seems to be the only live video flag
svn-id: r55418
2011-01-22 11:39:03 +00:00
Sven Hesse
5660b42a89 GOB: Another (?) non-blocking video flag
This fixes the intro needing an extra ESC.
Interestingly, the intro movie is actually interactive. You can
influence the paths Max takes by pressed the arrow keys at the
right times.

svn-id: r55411
2011-01-22 09:31:02 +00:00
Sven Hesse
bb6c230587 GOB: Implement looping live videos
Needed for the buttons in the Playtoons series

svn-id: r55359
2011-01-20 18:17:39 +00:00
Sven Hesse
03415868b0 GOB: Decrease the number of debug warnings
svn-id: r55358
2011-01-20 17:08:14 +00:00
Sven Hesse
fd7159075d GOB: Give sound-only videos 500 extra ms for good measure
svn-id: r55357
2011-01-20 17:07:46 +00:00
Sven Hesse
adf8820aee GOB: Make blocking videos default
svn-id: r55354
2011-01-20 15:29:32 +00:00
Sven Hesse
6b85f809d9 GOB: Urban: Fix missing visuals at Cemetary/Lab
Urban Runner decouples _frontSurface and
_spritesArray[kFrontSurface] at that screen... *sigh*

svn-id: r55346
2011-01-20 10:20:57 +00:00
Sven Hesse
bd3f9ad1e2 GOB: Use Surface::blit() in VideoPlayer::copyFrame()
svn-id: r55344
2011-01-20 05:19:41 +00:00
Sven Hesse
bad7f1ce9a GOB: Implement "live" (non-blocking) videos
Many thanks to SylvainTV. :)
Urban Runner might actually be completeable now.
One caveat: Hotspots at that hotel sequence are a bit glitchy...

svn-id: r55333
2011-01-19 18:57:43 +00:00
Sven Hesse
518e858d85 GOB: Allow true-color VMD cursors
svn-id: r55264
2011-01-16 16:30:15 +00:00
Sven Hesse
16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Sven Hesse
835455798f GOB: Remove the now useless helper.h
svn-id: r53491
2010-10-15 13:55:18 +00:00
Sven Hesse
5c48c3fd2b GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()

svn-id: r53490
2010-10-15 13:54:23 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Sven Hesse
e68b6e9f15 GOB: Remove dither stuff, commenting out most v6 drawing
svn-id: r52945
2010-09-30 13:00:30 +00:00
Eugene Sandulenko
b6d1c45bb7 GOB: Fix warnings about potentially uninitialized vars.
svn-id: r52142
2010-08-17 10:19:06 +00:00
Sven Hesse
5dc322454d GOB: Fix playing of sound VMDs with a starting frame != 0
svn-id: r51910
2010-08-08 01:02:49 +00:00
Sven Hesse
a2847e853b GOB: Make o6_loadCursor use the new VideoPlayer interface
svn-id: r51894
2010-08-08 00:54:52 +00:00
Sven Hesse
3295d6ec6b GOB: Make o6_playVmdOrMusic use the new VideoPlayer interface
svn-id: r51891
2010-08-08 00:53:27 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00