Commit Graph

31032 Commits

Author SHA1 Message Date
Filippos Karapetis
6ec870303f - Reverted commit #40730, as it introduced rounding errors
- Properly fixed the FLIC player
- The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method

svn-id: r40736
2009-05-20 10:43:18 +00:00
Torbjörn Andersson
caf9bf0941 Removed the rest of the hard-coded cutscene information. It was only needed to
get the number of frames of a cutscene (to find the "lead out frame"), but this
information is already provided by both the DXA and the SMK players. (It wasn't
provided by the now obsolete MPEG player.)

svn-id: r40735
2009-05-20 04:29:09 +00:00
Torbjörn Andersson
358b1a7c7e Removed the "seamless" flag. It was something I added to cope with the fade
in/out behaviour of the MPEG cutscene player, and no longer seems to be needed.

svn-id: r40734
2009-05-20 04:07:34 +00:00
Eugene Sandulenko
40dd214789 Start of fixing bug #2537054: "AGI: Using GMM to load causes graphics glitches"
The engine still crashes when load from GMM occured with a text box on screen.

svn-id: r40733
2009-05-19 21:09:43 +00:00
Walter van Niftrik
a1364e37f7 SCI: Some debugger fixes and cleanup.
svn-id: r40732
2009-05-19 20:40:21 +00:00
Eugene Sandulenko
743650506b Fix regression introduced in r40438. Saves were badly broken.
svn-id: r40731
2009-05-19 20:30:57 +00:00
Filippos Karapetis
e358b13ef9 Changed calculations based on frame delay to be based on the scale of 1ms, not 1/100. This fixes the FLIC player and also makes the overall code a bit clearer and easier to understand
svn-id: r40730
2009-05-19 19:56:53 +00:00
Filippos Karapetis
4f6bc50615 Some fixes to the video decoders, thanks to salty-horse's comments
svn-id: r40729
2009-05-19 17:39:03 +00:00
Filippos Karapetis
5d942f9d70 Removed some redundant variables, and renamed some variables with strange names ("foo"?)
svn-id: r40727
2009-05-19 15:59:17 +00:00
Johannes Schickel
67f1b6fae7 - Formatting
- Warning fixes
- Rename "test_read_v2_as_v1" to "test_read_v1_as_v2", to match behavior

svn-id: r40726
2009-05-19 12:39:53 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
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