Commit Graph

43907 Commits

Author SHA1 Message Date
Matthew Hoops
ac4bf4ffb8 MOHAWK: Add detection for the LBSampler v1
svn-id: r55704
2011-02-01 03:05:18 +00:00
Matthew Hoops
6ae0198ae8 MOHAWK: Add detection for the Mac LBSampler v3
svn-id: r55703
2011-02-01 03:00:42 +00:00
Matthew Hoops
e47ac9f937 MOHAWK: Add detection for Arthur's Computer Adventure
svn-id: r55702
2011-02-01 02:54:51 +00:00
Matthew Hoops
403a33b11c MOHAWK: Add detection for The Berenstain Bears Get in a Fight
svn-id: r55701
2011-02-01 02:47:24 +00:00
Arnaud Boutonné
088b5f7743 HUGO: Use a separate thread for honker player and fix ticks per seconds
This fixes the speaker music stopped by message boxes, and the speaker music itself.

svn-id: r55700
2011-02-01 00:08:12 +00:00
Filippos Karapetis
c0ce8a839e Silenced some MSVC warnings
svn-id: r55699
2011-01-31 23:19:00 +00:00
Alyssa Milburn
e2d3521d7d MOHAWK: LB detection/path updates.
Mark the v2.9x games as v3, mark Rugrats as v4, add detection for
CarmenTQ and add its install directory to the path.

svn-id: r55698
2011-01-31 23:10:18 +00:00
Matthew Hoops
956dc54e3d SCI: Update the Mac version detection comments
svn-id: r55697
2011-01-31 23:09:22 +00:00
Matthew Hoops
4c8a9ab24a SCI: Add support for Mac SCI1.1+ resource compression
Mac SCI1.1+ games should now start up. QFG1 and Hoyle4 are playable. GK1 starts its scripts, but errors out soon after. There are still some View bugs with each (somehow, view decompression seems to be adding a blank line after each line?).

*Much* thanks to Walter for his help.

svn-id: r55696
2011-01-31 22:45:51 +00:00
Sven Hesse
5c1e21818a GOB: o7_draw0xA4 has something to do with LBMs, though
svn-id: r55695
2011-01-31 21:02:13 +00:00
Sven Hesse
a3a51efa80 GOB: Actually, draw opcode 0x90 is loadImage
Not just loadLBM. The image can be a TGA, LBM, BRC, BMP or JPEG.

svn-id: r55694
2011-01-31 21:01:50 +00:00
Sven Hesse
1c1cfaf867 GOB: Set the language before opening the database
svn-id: r55693
2011-01-31 20:43:04 +00:00
Sven Hesse
a29282eefd GOB: Fix last updated month's range
svn-id: r55692
2011-01-31 20:42:41 +00:00
Sven Hesse
b874396219 GOB: o7_draw0x45 is o7_logString
svn-id: r55691
2011-01-31 20:42:16 +00:00
Arnaud Boutonné
1799c4f045 Hugo: Some cleanup
svn-id: r55690
2011-01-31 18:22:20 +00:00
Sven Hesse
250f5a97fa SCI: Add missing initializations
_resourceData, _imageStart, _audioStart and _audioLen

svn-id: r55689
2011-01-31 18:18:39 +00:00
Alyssa Milburn
309cb47572 MOHAWK: LB anim sound improvements.
The parent animation now keeps track of sounds, and animations don't
emit a done event while their sounds are still playing.

svn-id: r55688
2011-01-31 18:03:27 +00:00
Filippos Karapetis
4a07ae6829 SAGA: Simplified loadActorResources() and removed the unused _disabled field
svn-id: r55687
2011-01-31 16:11:49 +00:00
Filippos Karapetis
d45a2a97a3 TEENAGENT: Hopefully fixed an issue reported by Valgrind (found by digitall)
svn-id: r55686
2011-01-31 15:25:29 +00:00
Filippos Karapetis
fc02bd3722 DRASCULA: Fixed a warning
svn-id: r55685
2011-01-31 15:05:45 +00:00
Sven Hesse
7cb4b49db9 GOB: Fix a compiler warning
svn-id: r55684
2011-01-31 14:08:33 +00:00
Filippos Karapetis
dce4f404e6 SAGA: Fixed compilation with MSVC
svn-id: r55683
2011-01-31 14:05:47 +00:00
Sven Hesse
a8d62921c7 GOB: Fix text end positons for non-monospaced fonts
Fixes Adibou's recipices.

svn-id: r55682
2011-01-31 13:29:19 +00:00
Sven Hesse
9810ec1442 GOB: Make Font::_itemSize unsigned
This fixes a font drawing error in Adibou.

svn-id: r55681
2011-01-31 13:28:55 +00:00
Filippos Karapetis
7cc8d8d403 SAGA: Fixed compilation
svn-id: r55680
2011-01-31 12:01:24 +00:00
Filippos Karapetis
83d7ac7e1f SAGA: Fixed some typos, and removed an obsolete comment
svn-id: r55679
2011-01-31 11:45:24 +00:00
Filippos Karapetis
8bd7ace4d2 SAGA: Split the resource patching code into appropriate game-specific resource methods
svn-id: r55678
2011-01-31 11:40:40 +00:00
Filippos Karapetis
e0314f9ecd SAGA: Turned several unnecessarily inherited classes into typedefs
svn-id: r55677
2011-01-31 11:36:14 +00:00
Sven Hesse
b187551a01 GOB: Add support for dBase III files
Implementing o7_opendBase, o7_closedBase and o7_getDBString

svn-id: r55676
2011-01-31 10:49:43 +00:00
Sven Hesse
0f0dbe7b78 GOB: o7_draw0xC4 is o7_closedBase; o7_draw0xC6 is o7_getDBString
Stubbing those for now

svn-id: r55675
2011-01-31 10:49:03 +00:00
Filippos Karapetis
90d58cf487 SAGA: Rewrote the MacBinary resource loading code
This simplifies the overall code and makes it easier to understand. Also, a bug with the
speech in the MacBinary packed version has been corrected, so there are no more clicking
sounds before each sample.
The Common::MacResMan code isn't really useful here, since it doesn't expose the offsets
and sizes of the actual files, which is what is needed in SAGA.

svn-id: r55674
2011-01-31 10:46:52 +00:00
David Turner
a256b74e0a TEENAGENT: Further Memory Leak Fixes.
svn-id: r55673
2011-01-31 08:51:37 +00:00
David Turner
c11fdabab9 TEENAGENT: Fix Memory Leaks.
svn-id: r55672
2011-01-31 07:44:40 +00:00
David Turner
9573b1d2f5 TINSEL: Memory Leak Fix in Coroutines.
This fixes the leak from the COR0_BEGIN_CODE macro's CoroContextTag allocation.
Setting the _sleep value to negative values prevented the deallocation of these.
Have tested for obvious regressions, but a full DW/DW2 playtest should be done to confirm that this doesn't cause any issues.
Thanks to fingolfin for indicating this solution.

svn-id: r55671
2011-01-30 23:21:40 +00:00
Arnaud Boutonné
785f1776c4 HUGO: Fix warning reported by GCC
svn-id: r55670
2011-01-30 23:19:30 +00:00
Arnaud Boutonné
a07d37d3a5 HUGO:
- Replace several char* by Common::String
- Fix a bug in showDosInventory()

svn-id: r55669
2011-01-30 23:08:05 +00:00
Alyssa Milburn
c7808b9091 MOHAWK: Handle kLBAnimOpSetTempoDiv better.
svn-id: r55668
2011-01-30 22:42:37 +00:00
Filippos Karapetis
b7362876dd SWORD25: Disabled the video save/load code, and made it error out instead.
Videos are never saved or loaded, thus when this happens, it probably indicates a game bug
or a corrupted saved game

svn-id: r55667
2011-01-30 21:00:23 +00:00
Filippos Karapetis
d4e1260b7e SWORD25: Some optimizations to the Theora decoder
- Optimized and cleaned up translateYUVtoRGBA()
- Disabled a lot of seeking-related functionality
- Replaced some calloc() calls, used for audio buffer creation with malloc()

svn-id: r55666
2011-01-30 20:39:02 +00:00
Bastien Bouclet
77d2110101 MOHAWK: Implement Stoneship telescope
svn-id: r55665
2011-01-30 20:37:59 +00:00
Filippos Karapetis
9d6e398e74 SWORD25: Added alternative code for video frame blitting (currently disabled)
svn-id: r55664
2011-01-30 20:36:17 +00:00
Filippos Karapetis
2e42c2d11d SWORD25: Some translations, and a bugfix. Disabled a hack.
Translated some comments, and pushed the indirect rendering define to the header
file, so that the engine won't try and update the screen with direct movie rendering.
Also, the thumbnail hack has been disabled, as it doesn't really work (at least not for
me: all the thumbnails are gray)

svn-id: r55663
2011-01-30 20:34:47 +00:00
Sylvain Dupont
5257d91e99 TOON: Fixes two movie issues
- Can't skip the videos with left button anymore, now the Nefarius video on the
TV is played normally and not skipped.
- Last video playback 2x too big in height.

svn-id: r55662
2011-01-30 20:21:45 +00:00
Johannes Schickel
867c0d9645 COMMON: Add an erase method which takes an iterator to HashMap.
Currently there is no iterator returned from this method, to have some
similarity to associative containers of the STL.

I also "added" one unit test for this method, which is basically just
a copy of the HashMap::erase(const Key &) test with the required adaptions.

svn-id: r55661
2011-01-30 17:28:35 +00:00
David Turner
ec885e5665 SCUMM: Fix Valgrind mismatched delete errors in SMUSH channel base class.
This was due to the SMUSH channel base class using new/delete to manage buffer, but the imuse_channel and saud_channel classes which subclass and override this using malloc/free.
The more C++ solution of moving all to new/delete was tried, but the buffer is passed into a MemoryReadStream and free()'d there, so all classes have been moved to malloc/free instead.
This is not a critical problem as the buffers are byte primitive type anyway.

svn-id: r55660
2011-01-30 16:50:55 +00:00
David Turner
b644c6d466 SCUMM: Remove direct usage of OSystem quit() function in SCUMM engine code.
This would cause leaks, but occurs in development code only.

svn-id: r55659
2011-01-30 14:53:47 +00:00
David Turner
7d5dcc2a0a SWORD1: Fix possible uninitialized memory read in Screen object.
This was detected during playtest with Valgrind during Act 5 (Spain).

svn-id: r55658
2011-01-30 14:41:27 +00:00
Bastien Bouclet
0b69b6a842 MOHAWK: Myst, pass the playback direction from the calling script to the movie player.
svn-id: r55657
2011-01-30 13:54:39 +00:00
Bastien Bouclet
b43fae5c18 MOHAWK: Myst, display a warning when trying to play a movie backwards.
svn-id: r55656
2011-01-30 13:44:01 +00:00
Sylvain Dupont
3cd1ac9ca6 TOON: Add coordinates clamping for safety
In some rare cases, Drew position is outside the valid area. 
Made sure it does not crash in these cases.

svn-id: r55655
2011-01-30 13:31:13 +00:00