31021 Commits

Author SHA1 Message Date
Walter van Niftrik
4d59f620f9 SCI: Changed K_FILEIO_FILE_EXISTS to check regular files too.
svn-id: r40724
2009-05-19 11:30:51 +00:00
Max Horn
42cd218400 Improved Common::Serializer in several ways:
* Added support versioned serialization
* Added a convenience API for handling 'magic IDs' transparently
* Exposed the err()/clearErr() methods of the underlying streams
* Added a basic unit test for versioned loading (more should be added, in particular for saving)
* Removed the syncString(char *, uint16) alias for syncBytes(byte *buf, uint32 size)

svn-id: r40723
2009-05-19 11:23:13 +00:00
Max Horn
2b32ba7cb3 Converted unit tests to use TS_ASSERT_EQUALS / TS_ASSERT_DIFFERS where possible; also made them comply a bit more to our code formatting guideline
svn-id: r40722
2009-05-19 11:22:49 +00:00
Max Horn
c24559877d Updated link to CxxTest homepage
svn-id: r40721
2009-05-19 11:22:20 +00:00
Max Horn
613ca85bf9 SCI: Doxygenified a few comments
svn-id: r40720
2009-05-19 11:22:06 +00:00
Walter van Niftrik
df3357159c SCI: Added some stubs for LSL6CD (lores).
svn-id: r40719
2009-05-19 02:10:58 +00:00
Travis Howell
789cb98492 Correct translation error.
svn-id: r40718
2009-05-19 01:58:51 +00:00
Johannes Schickel
783fb058b0 Formatting.
svn-id: r40717
2009-05-19 01:39:18 +00:00
Travis Howell
36ace75983 Improve looping of videos, in the demo version of The Feeble Files.
svn-id: r40716
2009-05-19 01:20:54 +00:00
Johannes Schickel
7561bd9dfb Remov lots of superfluous debug output.
svn-id: r40715
2009-05-19 01:13:29 +00:00
Max Horn
136fcb3810 SCI: Introduce a new subclass StringFrag of MemObject (does nothing right now); switched MemObject to subclass Common::Serializable
svn-id: r40714
2009-05-19 00:34:10 +00:00
Max Horn
4755fcb130 SCI: got rid of EngineState::savegame_version; some cleanup
svn-id: r40713
2009-05-19 00:33:48 +00:00
Max Horn
091b347a7e SCI: Init the diff .#&$ EngineState::flags field in the constructor and when loading -- fixes many weird crashes upon loading (lesson to be learned: if you add fields to a class, then (a) init it in the construtor and (b) if the class support serializing, make sure the new field is handled when saving/loading :-)
svn-id: r40712
2009-05-19 00:02:44 +00:00
Max Horn
8add60bf8c SCI: Cleanup/paranoia checks
svn-id: r40711
2009-05-19 00:02:10 +00:00
Johannes Schickel
62190b57d8 Don't quit when the user selects "Load game" in main menu.
svn-id: r40710
2009-05-18 23:21:40 +00:00
Johannes Schickel
2f72831876 Don't crash on debugger shortcut when no debugger is present. (Fixes crash in LoL, when the user tries to press Ctrl+d)
svn-id: r40709
2009-05-18 23:14:37 +00:00
Johannes Schickel
90b4afd41b Add some simple implementation for type 8 data blocks:
- Fix sound effect in LoL demo

svn-id: r40708
2009-05-18 22:11:56 +00:00
Johannes Schickel
29cf3ed1a4 Add support for music in the LoL intro demo.
svn-id: r40706
2009-05-18 21:56:09 +00:00
Johannes Schickel
273b93f3a7 Preliminary support for LoL intro demo.
svn-id: r40705
2009-05-18 21:45:09 +00:00
Eugene Sandulenko
8576b162dc Implement FR#2103654: "AGI sound volume"
svn-id: r40704
2009-05-18 21:37:13 +00:00
Eugene Sandulenko
1d90907f93 Fix bug with AGI ignoring music volume.
svn-id: r40703
2009-05-18 21:35:08 +00:00
Eugene Sandulenko
eb92554db9 Fix bug #2791868: "GUI: Glitch when closing menu after hovering on option"
svn-id: r40702
2009-05-18 21:02:52 +00:00
Florian Kagerer
d66365f376 LOL: fixed automap
svn-id: r40701
2009-05-18 20:28:08 +00:00
Johannes Schickel
68b3cc89ae Fixed long standing palette loading bug in WSA v1 code.
svn-id: r40700
2009-05-18 20:08:18 +00:00
Johannes Schickel
cc250e0029 Don't delay any longer, when engine is asked to quit.
svn-id: r40699
2009-05-18 20:07:09 +00:00
Fabio Battaglia
b70bbcf306 tinsel: fixed "Unknown drawing type" for inventory in Discworld PSX
svn-id: r40698
2009-05-18 20:05:30 +00:00
Fabio Battaglia
7e11e57339 tinsel: start adding transparency support to Discworld PSX
svn-id: r40697
2009-05-18 19:56:54 +00:00
Johannes Schickel
b1bdbef419 Add some code differences for LoL intro demo.
svn-id: r40696
2009-05-18 19:53:57 +00:00
Max Horn
a652e1ae3d SCI: Added FIXME
svn-id: r40695
2009-05-18 18:16:01 +00:00
Max Horn
b0c1cf52e0 SCI: Got rid of EngineState::execution_stack_pos; overally, the resulting code should be even stricter in detecting invalid VM stack access (and some bugs when loading saves might be fixed now...)
svn-id: r40694
2009-05-18 18:15:45 +00:00
Johannes Schickel
b2b08cc606 Typo.
svn-id: r40693
2009-05-18 16:00:15 +00:00
Filippos Karapetis
4ed457850a Removed a leftover simple_said define
svn-id: r40692
2009-05-18 15:21:24 +00:00
Max Horn
e0366f00bc SCI: Removed SCI_SIMPLE_SAID_CODE and the associated heavily bitrotted code
svn-id: r40691
2009-05-18 15:07:51 +00:00
Max Horn
790e235ae1 SCI: Removed ENTRY_IS_VALID macro
svn-id: r40690
2009-05-18 15:07:31 +00:00
Max Horn
9da07f21fe SCI: cleanup
svn-id: r40689
2009-05-18 15:07:04 +00:00
Max Horn
99713ca7fa SCI: Tweaks, cleanup
svn-id: r40688
2009-05-18 12:36:04 +00:00
Max Horn
a0b6f21a1a SCI: Fixed Table::initTable to invoke _table.clear()
svn-id: r40687
2009-05-18 12:35:42 +00:00
Max Horn
62876a5ad5 SCI: Changed SegManager to not pre-allocate _heap entries (leave the memory management to Common::Array)
svn-id: r40686
2009-05-18 12:35:18 +00:00
Max Horn
5170acd00c SCI: Removed the unused member SegManager::gc_mark_bits; changed some int params to SegmentId
svn-id: r40685
2009-05-18 12:34:56 +00:00
Max Horn
f594562745 SCI: Added a FIXME to graph_save_box
svn-id: r40684
2009-05-18 12:34:25 +00:00
Max Horn
fc9096ba1d SCI: Replaced SegManager::getHeap() by Script::getHeap()
svn-id: r40683
2009-05-18 12:34:03 +00:00
Johannes Schickel
dd12c0d06a Oops didn't mean to remove new line from this format string.
svn-id: r40682
2009-05-18 11:57:02 +00:00
Johannes Schickel
3406790cc3 Don't print __FILE__,__LINE__ in *_list related debug output, it would only print klists.cpp and the according line anyway.
svn-id: r40681
2009-05-18 11:56:00 +00:00
Johannes Schickel
220fe60424 Fix some error/warning calls. (might need some review, from someone familiar with SCI)
svn-id: r40680
2009-05-18 11:53:04 +00:00
Travis Howell
e59e65aa99 Fix crash when any movie is played in the Macintosh version of The Feebles Files, a regression caused by revision 36085.
svn-id: r40679
2009-05-18 10:40:22 +00:00
Filippos Karapetis
ecd893ca48 Fixed incorrect order of parameters in the workaround debug message shown for LSL6
svn-id: r40678
2009-05-18 09:59:54 +00:00
Filippos Karapetis
76ad23ddbd Added a workaround for LSL6, thanks to waltervn's comments
svn-id: r40677
2009-05-18 09:07:31 +00:00
Filippos Karapetis
1e547f320c Removed the unused file and line parameters from the list and list node lookup functions, and removed the LOOKUP_LIST and LOOKUP_NODE defines. Also, disabled the unused LOOKUP_SPECIES define
svn-id: r40676
2009-05-18 08:28:04 +00:00
Filippos Karapetis
1239949ef2 Changed errors to be fatal, as most of them are fatal conditions. Some of them have been changed to warnings for now, as they occur in certain games (e.g. SQ4 floppy, SQ4 CD and KQ5 CD)
svn-id: r40675
2009-05-18 07:55:13 +00:00
Florian Kagerer
243bb790e8 LOL: fix "rest party" button (broken after changes to the button handling)
svn-id: r40674
2009-05-18 06:34:23 +00:00