Commit Graph

924 Commits

Author SHA1 Message Date
Arnaud Boutonné
00857eabe1 Some modifications in o6_playVmdOrMusic: Less warnings in console Windows, and first animations on interface icons. still problematic : cursor should not disappear during animation, and animation should loop
svn-id: r43709
2009-08-24 21:53:15 +00:00
Arnaud Boutonné
833ff0ccb7 Add another extension: SMD
svn-id: r43707
2009-08-24 21:33:35 +00:00
Sven Hesse
40f1deae3a Properly initialize _autoDouble, fixing demos that don't set a video mode on their own (like the Inca II (bat)demo)
svn-id: r43665
2009-08-23 09:57:47 +00:00
Sven Hesse
c70a874506 Properly fixing the Lost in Time temp sprite issue
svn-id: r43654
2009-08-22 15:46:43 +00:00
Sven Hesse
401e54825f Hooking up the v2 spriteUncompressor into the v6 one
svn-id: r43642
2009-08-22 13:11:30 +00:00
Arnaud Boutonné
f9a3ca7db1 Add 31 title files to ignore (they are never present !)
svn-id: r43601
2009-08-21 16:50:30 +00:00
Sven Hesse
79c2dc7980 Fixing some signed/unsigned comparison warnings
svn-id: r43570
2009-08-20 20:59:22 +00:00
Arnaud Boutonné
e350e0b020 Replace magic numbers by constants : kPropsSize and kIndexSize
svn-id: r43562
2009-08-20 13:36:18 +00:00
Arnaud Boutonné
afabd2706b Add oPlaytoons_F_1B skeletton, and oPlaytoons_readData to avoid adding a playtoons workaround in inter_v2.
svn-id: r43561
2009-08-20 12:32:59 +00:00
Arnaud Boutonné
50d515c3df modify props size to avoid later error (Size is still temporary) and prepare the magic number => constant modification
svn-id: r43560
2009-08-20 12:30:37 +00:00
Johannes Schickel
b33b90ecd0 Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
svn-id: r43512
2009-08-18 15:31:26 +00:00
Arnaud Boutonné
90336c88ac Add back parenthesis (I wasn't aware of this convention, sorry) in saveload, and mimic this code in oPlaytoons_openItk
svn-id: r43464
2009-08-17 10:05:02 +00:00
Johannes Schickel
b8fd79486f Formatting.
svn-id: r43463
2009-08-17 09:57:09 +00:00
Arnaud Boutonné
e214755107 Suppress useless parentheses
svn-id: r43462
2009-08-17 09:54:49 +00:00
Arnaud Boutonné
f3918d14d6 Added OPCODEDRAW 0x85, with a specific workaround for Bambou hardcoded paths in scripts
svn-id: r43461
2009-08-17 09:50:35 +00:00
Torbjörn Andersson
762d2dc03a Removed unnecessary semi-colons.
svn-id: r43409
2009-08-15 14:13:48 +00:00
Sven Hesse
5e90ce3536 Setting gob3 save/load mode of the temporary sprite "intro.$$$" to ignore and remove the TempSpriteHandler.
Gob3 doesn't use it at all and Lost in Time only saves (with an invalid index) and never loads

svn-id: r43366
2009-08-14 15:22:43 +00:00
Arnaud Boutonné
e9767a80ce fix methods
svn-id: r43347
2009-08-13 10:08:07 +00:00
Arnaud Boutonné
f9560dc35a Suppress no longer needed Playtoons workaround
svn-id: r43346
2009-08-13 10:00:35 +00:00
Arnaud Boutonné
fc74ec8646 - Add a specific OPCODEFUNC checkData to avoid having a Playtoons workaround in working code
- Replace OPCODEDRAW 0x20,0x23 and 0x25

svn-id: r43345
2009-08-13 09:59:44 +00:00
Arnaud Boutonné
6bcc9a45fd Initial save handler for Playtoons
svn-id: r43344
2009-08-13 09:56:54 +00:00
Arnaud Boutonné
1e36bac353 gob - Add 2 files tested and used by Playtoons and Playtoons CK
svn-id: r43228
2009-08-10 20:58:13 +00:00
Arnaud Boutonné
294f416c4d gob - Add a workaround for files (at least in Playtoons) that are tested on CD only, with the '@' symbol
svn-id: r43227
2009-08-10 20:57:26 +00:00
Sven Hesse
256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse
61e0be75b5 When opening a data stream, don't read the whole file into memory if not necessary. This vastly improves the loading times of Gob3 on small devices
svn-id: r43107
2009-08-08 02:23:04 +00:00
Sven Hesse
b9263e172f Show a message if saving or loading a game fails.
svn-id: r43001
2009-08-02 13:54:06 +00:00
Sven Hesse
87124b1d38 Removing _frameWaitLag. It broke normal animation speed in pre-v4 games and didn't even do what it was supposed to in v4+ games anyway. (bug #2830985)
svn-id: r42996
2009-08-02 10:40:48 +00:00
Sven Hesse
1471f0e3dd When ESCing videos, seek to the last frame that was meant to be played. Fixes graphical glitches (bug #2830985) and crashes (bug #2830988)
svn-id: r42995
2009-08-02 10:40:27 +00:00
Sven Hesse
ca7c35bc9a Oops, fixing a regression I created with the Map_v4/Map_v2-merge
svn-id: r42894
2009-07-29 15:57:50 +00:00
Sven Hesse
550d9cf39d More alignment-related changes
svn-id: r42858
2009-07-28 16:28:32 +00:00
Sven Hesse
f5e9aa67c4 Changing stuff around a bit so alignment requirements won't increase
svn-id: r42857
2009-07-28 15:19:55 +00:00
Sven Hesse
f832d0fc56 Silencing two "empty loop body" warnings
svn-id: r42856
2009-07-28 15:05:44 +00:00
Sven Hesse
b956c707f4 Moved the decision whether subtitles should be displayed, so that the broken subtitles in The Last Dynasty aren't shown
svn-id: r42767
2009-07-25 16:08:31 +00:00
Sven Hesse
edab6f2d7f Added a workaround to fix the Last Dynasty video greenness for now
svn-id: r42766
2009-07-25 16:07:29 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Sven Hesse
da747553d8 Merging Map_v4 into Map_v2
svn-id: r42716
2009-07-24 21:36:59 +00:00
Sven Hesse
3668895abc CoktelVideo cleanup: Splitting up some IMD methods and removing the obsolete notifyPaused()
svn-id: r42715
2009-07-24 21:36:42 +00:00
Sven Hesse
c4baedc6db Renaming getAnchor() to getFrameCoords()
svn-id: r42713
2009-07-24 21:35:57 +00:00
Sven Hesse
6a28c0af12 Added a method to easily dump resources to file
svn-id: r42711
2009-07-24 21:34:43 +00:00
Sven Hesse
90d8dcca5f Adding ADL playback to the demoplayer
svn-id: r42709
2009-07-24 21:33:55 +00:00
Sven Hesse
02ca620d7c Caching the subtitle font and color, because some don't assign those
svn-id: r42706
2009-07-24 21:31:58 +00:00
Sven Hesse
adc537161a Adding subtitle support to Woodruff
svn-id: r42705
2009-07-24 21:31:00 +00:00
Sven Hesse
01b8320367 Fixing a bug in the V4 save file handler, produced by a "neat" feature in Woodruff: The saves remember their position within the list and use that information to load the "correct" screen properties, making it impossible to load reordered saves correctly -.-
svn-id: r42679
2009-07-23 19:50:13 +00:00
Sven Hesse
3a3e7acf51 Fixing the text input in Gob1 (the loading code wasn't printed as you typed anymore)
svn-id: r42642
2009-07-21 12:14:36 +00:00
Sven Hesse
4f431e8952 Fixing "Game "hangs" after first level" (bug #2824414)
svn-id: r42641
2009-07-21 11:58:58 +00:00
Sven Hesse
87af626ee9 Making some static const uint32s public, older GCC versions don't seem to like nested classes to access their parents' protected members
svn-id: r42640
2009-07-21 11:26:31 +00:00
Sven Hesse
049a636abc Adding a workaround for the guard house card game "game over" screen in Woodruff
svn-id: r42588
2009-07-18 13:05:36 +00:00
Sven Hesse
025702ba40 /Finally/ fixing the longstanding flicker bug in Woodruff. I was completely mistaken about its cause, too
svn-id: r42572
2009-07-17 20:03:41 +00:00
Sven Hesse
df52a5d58e Adding a workaround for the vanishing Coh Cott bug (#1972466), which is actually an error in that video file
svn-id: r42570
2009-07-17 19:22:12 +00:00
Sven Hesse
6c4e87a1d8 Making TOTResourceItem::size unsigned, fixing a graphics bug that crept in
svn-id: r42552
2009-07-17 00:55:56 +00:00
Sven Hesse
922f721108 Added some more debug warnings when resources can't be loaded
svn-id: r42551
2009-07-17 00:55:42 +00:00
Arnaud Boutonné
810961e685 Add detection for Playtoons 4 EN_ANY as supplied by goodoldgeorg in bug #2820006
svn-id: r42483
2009-07-14 15:48:05 +00:00
Arnaud Boutonné
c4437fa013 Add detection for Playtoons CK 3 (FR)
svn-id: r42476
2009-07-14 13:25:38 +00:00
Sven Hesse
5913895ecc Allow resource loading from EXT even if the TOT has none again
svn-id: r42463
2009-07-13 23:42:37 +00:00
Sven Hesse
ad7c50e70d Fixing mismatched delete
svn-id: r42354
2009-07-10 21:49:47 +00:00
Sven Hesse
3823ae285f Giving Font its own real class
svn-id: r42277
2009-07-09 02:54:10 +00:00
Eugene Sandulenko
9bdf1a2ab1 kFeatures800 -> kFeatures800x600 in order to have more meaningful name
svn-id: r42229
2009-07-07 17:11:29 +00:00
Arnaud Boutonné
09efaaa1c9 Change SaveLoad_Playtoons case
svn-id: r42217
2009-07-07 12:51:21 +00:00
Arnaud Boutonné
add4d124b2 - Add a new gametype for 'The Land of the Magic Stones'
- Add detection of the french version
- Add a new game feature for 800*600

svn-id: r42215
2009-07-07 12:03:27 +00:00
Arnaud Boutonné
a0ab8c9c0c - Separate Playtoons gametypes from in GobEngine::initGameParts()
- Add a specific save/load class for Playtoons as some specific files need to be tested

svn-id: r42214
2009-07-07 11:58:22 +00:00
Arnaud Boutonné
45b7e5bbc2 Add detection of Playtoons 2 En
svn-id: r42208
2009-07-07 07:51:18 +00:00
Sven Hesse
77c7c1cf81 Loop over the string instead of copying and then editing it (hopefully, the PSP GCC won't ICE again here :P)
svn-id: r42176
2009-07-06 13:52:47 +00:00
Joost Peters
de995433c6 add workaround for PSP compiler ICE
svn-id: r42175
2009-07-06 13:09:50 +00:00
Sven Hesse
e182cc0b9f Splitting up the big evaluate() function
svn-id: r42171
2009-07-06 11:19:37 +00:00
Sven Hesse
c3d9acf309 Adding more comments
svn-id: r42161
2009-07-06 01:41:29 +00:00
Sven Hesse
edfaf7bc3c Added an enum for the hotspot states
svn-id: r42155
2009-07-05 21:40:51 +00:00
Sven Hesse
29e97533c1 Adding some hotspot debug messages
svn-id: r42154
2009-07-05 21:40:20 +00:00
Sven Hesse
50108e9135 Renaming the last occurences of "Collision" to "Hotspot"
svn-id: r42153
2009-07-05 21:39:55 +00:00
Sven Hesse
c88b9be2a7 Reordering some methods
svn-id: r42150
2009-07-05 19:58:09 +00:00
Sven Hesse
d6c99ae861 Renaming FontDesc::extraData to charWidths
svn-id: r42149
2009-07-05 19:57:55 +00:00
Sven Hesse
62fcf1177d More input related split-offs
svn-id: r42148
2009-07-05 19:57:37 +00:00
Sven Hesse
5a85a13615 Split off some drawing related functions
svn-id: r42147
2009-07-05 19:57:22 +00:00
Sven Hesse
9f0245094b Ooops, fixing monospaced text input again
svn-id: r42146
2009-07-05 19:57:08 +00:00
Sven Hesse
c4dc61edb5 Split off Hotspots::evaluateNew()
svn-id: r42145
2009-07-05 19:56:54 +00:00
Sven Hesse
aeb020602a More state-related encapsulation
svn-id: r42144
2009-07-05 19:56:40 +00:00
Sven Hesse
a7ab6c5e92 Correcting an input related mistake
svn-id: r42143
2009-07-05 19:56:23 +00:00
Sven Hesse
dbdce9616c Encapsulating hotspot state reading
svn-id: r42142
2009-07-05 19:56:03 +00:00
Sven Hesse
daaba72677 Adding a workaround for an invalid expression in Gob1 EGA
svn-id: r42135
2009-07-05 12:52:14 +00:00
Sven Hesse
7e7c86a337 Removing the now unneeded Game_v* classes
svn-id: r42131
2009-07-05 11:30:14 +00:00
Sven Hesse
7e11c18fa2 Putting the Urban noCD check into Init_v6::initGame()
svn-id: r42130
2009-07-05 11:29:54 +00:00
Sven Hesse
14172febf7 Merging playTot()
svn-id: r42129
2009-07-05 11:29:30 +00:00
Sven Hesse
7be3530ffb Merging Game's and Game_v6's totSub()
svn-id: r42128
2009-07-05 11:29:13 +00:00
Sven Hesse
4e70129d60 Merging Game_v1's and Game_v2's prepareStart()
svn-id: r42127
2009-07-05 11:28:57 +00:00
Sven Hesse
3b9add8330 Fixing indent
svn-id: r42126
2009-07-05 11:28:38 +00:00
Sven Hesse
bc4f27c6b6 Removing the now empty Game_Fascination class
svn-id: r42125
2009-07-05 11:28:25 +00:00
Sven Hesse
86f0669c93 Wrapping the block end marker checks into Hotspots::Hotspot::isEnd()
svn-id: r42124
2009-07-05 11:28:09 +00:00
Sven Hesse
18550c1314 Moving the "Collision" stuff to Hotspots in hotspots.cpp/.h
svn-id: r42123
2009-07-05 11:27:54 +00:00
Sven Hesse
835dea71ce Added a skipBlock() method
svn-id: r42122
2009-07-05 11:27:26 +00:00
Sven Hesse
e861fab808 Added a Key and ShortKey enum
svn-id: r42121
2009-07-05 11:27:11 +00:00
Sven Hesse
704895b35f Commenting prepareStr a bit and renaming it to cleanupStr
svn-id: r42120
2009-07-05 11:26:42 +00:00
Sven Hesse
d2c2386c6a Adding an enum MouseButtons
svn-id: r42119
2009-07-05 11:26:23 +00:00
Lars Persson
62acda5fdb Use MIN with correct template parameter.
svn-id: r42008
2009-07-01 20:11:44 +00:00
Sven Hesse
5a6573d33d Fixing text strings embedded in the TOT
svn-id: r41903
2009-06-26 19:03:37 +00:00
Sven Hesse
17a2f52ac6 Making _numDataChunks unsigned
svn-id: r41875
2009-06-25 18:53:36 +00:00
Sven Hesse
df6e41e2ba Adding more version entries for a Gob1 Win version, thanks to Hkz
svn-id: r41869
2009-06-25 15:37:46 +00:00
Sven Hesse
e39b5b986e Oops, used git commit --amend wrong, apparently. /This/ is the real Environments change I wanted to push
svn-id: r41868
2009-06-25 15:29:19 +00:00
Sven Hesse
8343bc6cc0 Giving the "backup" arrays their own class, Environments, and really plugging all related leaks
svn-id: r41860
2009-06-25 10:55:01 +00:00
Sven Hesse
88062e90a0 Plugging some memory leaks
svn-id: r41859
2009-06-25 10:54:35 +00:00
Sven Hesse
d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse
ef33f98a1a Added the scriptEnd property
svn-id: r41838
2009-06-24 21:48:27 +00:00