Johannes Schickel
4d66b55316
Fix g++ warning.
...
svn-id: r40905
2009-05-26 10:10:45 +00:00
Filippos Karapetis
780899fb0e
Rewrote the Audio stream parser. The introduction of KQ6 should work more correctly now (apart from Cassima's speech)
...
svn-id: r40904
2009-05-26 10:02:25 +00:00
Walter van Niftrik
de5ca1e472
SCI: Some small fixes for KQ6CD.
...
svn-id: r40898
2009-05-26 00:03:41 +00:00
Johannes Schickel
b9bdded269
Remove leftover debug messages.
...
svn-id: r40896
2009-05-25 20:55:49 +00:00
Filippos Karapetis
16d6499617
WIP code for the speech in the floppy version of KQ6 (still needs work)
...
svn-id: r40894
2009-05-25 19:57:09 +00:00
Willem Jan Palenstijn
183c9e56ed
SCI: Only let gfxop_set_color use priority/control if mask has their bits set.
...
This fixes a regression from r39089 where text in the KQ5(floppy) intro
was displayed behind trees.
svn-id: r40893
2009-05-25 19:48:52 +00:00
Filippos Karapetis
5f7847d88d
Re-enabled the code for correct text positioning - it should work correctly now
...
svn-id: r40891
2009-05-25 16:30:39 +00:00
Filippos Karapetis
71cc92ab7f
Fixed a nasty bug in the GUI code, which caused the windows in PQ3 and SCI1.1 games to be erased incorrectly
...
svn-id: r40889
2009-05-25 13:25:31 +00:00
Johannes Schickel
cb5c26dd53
- Fix various valgrind warnings in the audio sync code
...
- Fix crash when qutting KQ 5 CD
(It was caused by resources of type "kResourceTypeSync" getting allocated an "Resource" object instead of an "ResourceSync" object, I hope this is the correct fix)
svn-id: r40888
2009-05-25 12:47:58 +00:00
Johannes Schickel
c7d9e4dc0c
Fix mismatching new[]/delete pair (silences a valgrind warning).
...
svn-id: r40887
2009-05-25 12:41:14 +00:00
Walter van Niftrik
fcc45186a5
SCI: Adlib: fix crash in SQ4.
...
svn-id: r40886
2009-05-25 12:38:20 +00:00
Filippos Karapetis
4470dada57
Fixed crash when starting KQ6
...
svn-id: r40885
2009-05-25 11:44:24 +00:00
Walter van Niftrik
5e68c1f4a0
SCI: Force movie palettes (KQ6).
...
svn-id: r40883
2009-05-25 11:14:42 +00:00
Filippos Karapetis
d59796fb54
Objectified the AudioResource code (used for speech and digitized music in CD talkie games)
...
svn-id: r40880
2009-05-25 10:30:19 +00:00
Walter van Niftrik
8adc948001
SCI: Adlib: added support for rhythm channel
...
svn-id: r40874
2009-05-24 22:32:21 +00:00
Willem Jan Palenstijn
fd0578f151
SCI: reset system palette when loading a new PIC.
...
This improves the colours of background images, but is still partially
broken. The mouse cursor becomes transparent when changing scenes, and
there is a brief moment of palette corruption between scenes.
svn-id: r40870
2009-05-24 18:41:19 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Willem Jan Palenstijn
725ff24170
SCI: re-xlate pixmap when palette revision changed
...
svn-id: r40859
2009-05-24 12:56:06 +00:00
Filippos Karapetis
8ab0f0256e
Fixed audio synchronization in the CD version of KQ5
...
svn-id: r40855
2009-05-24 09:40:48 +00:00
Willem Jan Palenstijn
a19c23ab7a
SCI: add (unused) palette revisioning support
...
svn-id: r40838
2009-05-23 22:21:42 +00:00
Filippos Karapetis
8dd601d35e
Moved the "dump" and "dissectscript" commands to console.cpp and renamed them to "hexdump" and "dissect_script" respectively
...
svn-id: r40818
2009-05-23 19:59:42 +00:00
Filippos Karapetis
fc0fab937a
Oops, fixed silly typo
...
svn-id: r40816
2009-05-23 18:57:47 +00:00
Filippos Karapetis
6a7aae788d
Some more WIP code for kDoAudio(), taken from Greg's SCI engine. Sound and speech in KQ5CD should be working now
...
svn-id: r40815
2009-05-23 18:55:56 +00:00
Filippos Karapetis
39f9894ee5
Added a stub for SetVideoMode(), and fixed some of the palette glitches in the intro of KQ6 thanks to some comments by waltervn. Also, commented out the bounds rect in gfxr_pic_t, as it's currently unused
...
svn-id: r40808
2009-05-23 13:26:45 +00:00
Filippos Karapetis
91d2fa2d0d
Fixed clipping code for texts which do not fit on screen, and added a warning when this happens
...
svn-id: r40807
2009-05-23 12:08:36 +00:00
Filippos Karapetis
f77dfe9d23
Fixed the incorrect placement of the copyright message in KQ6 on screen
...
svn-id: r40806
2009-05-23 11:56:27 +00:00
Filippos Karapetis
b4126beea2
The third and fourth parameter in changePortBounds() are x2 and y2, not width and height
...
svn-id: r40805
2009-05-23 10:50:24 +00:00
Filippos Karapetis
2590511c7d
Turned some errors into warnings, as they occur in KQ5CD
...
svn-id: r40804
2009-05-23 10:22:27 +00:00
Filippos Karapetis
3811df7aca
Fixed the incorrectly placed views in the KQ6 intro, by reintroducing port bounds in the graphics resource manager and removing two relevant hacks
...
svn-id: r40803
2009-05-23 10:07:01 +00:00
Walter van Niftrik
248f415fac
SCI: Added partial support for SCI1.1 adlib music
...
svn-id: r40800
2009-05-23 01:41:09 +00:00
Filippos Karapetis
ef4947060e
Some initial WIP code on kDoAudio (still not working)
...
svn-id: r40790
2009-05-22 22:19:15 +00:00
Walter van Niftrik
36fe37443d
SCI: Added support for KQ6 movies.
...
svn-id: r40774
2009-05-21 22:03:23 +00:00
Max Horn
b431254070
SCI: Removed the 'save_dir' gui hack
...
svn-id: r40772
2009-05-21 21:50:11 +00:00
Max Horn
4c17541276
SCI: got rid of vocabulary_lookup_sname
...
svn-id: r40771
2009-05-21 21:49:43 +00:00
Filippos Karapetis
4799cbf1c3
Removed the PREG, PSTK, IS_NULL_REG and REG_EQ defines
...
svn-id: r40767
2009-05-21 17:18:46 +00:00
Filippos Karapetis
fddd2a2214
Slight cleanup to kGetTime()
...
svn-id: r40754
2009-05-21 10:34:13 +00:00
Max Horn
bba91075bf
removed trailing whitespaces
...
svn-id: r40742
2009-05-20 17:53:31 +00:00
Max Horn
4f55f1e730
SCI: Moved code related to loading/setting up kernel function names from vocab_debug.cpp to engine/kernel.cpp
...
svn-id: r40741
2009-05-20 17:52:49 +00:00
Max Horn
4c786a44c9
SCI: Changed EngineState::opcodes to a Common::Array (maybe we shold just remove the relevant code completely, though, it seems useless, esp. as long as we hardcode the way we interpret every opcode
...
svn-id: r40740
2009-05-20 17:52:33 +00:00
Max Horn
7d54385dea
SCI: Moved some private decls from kernel.h to kernel.cpp; removed pointless (and incorrect) fallback code in k_Unknown
...
svn-id: r40739
2009-05-20 17:52:12 +00:00
Max Horn
f5f48fff3a
SCI: Moved the few kernel functions that were in kernel.cpp to a new file kmisc.cpp
...
svn-id: r40738
2009-05-20 17:51:55 +00:00
Walter van Niftrik
a1364e37f7
SCI: Some debugger fixes and cleanup.
...
svn-id: r40732
2009-05-19 20:40:21 +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
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
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
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