Commit Graph

182 Commits

Author SHA1 Message Date
Filippos Karapetis
068372ac94 Cleanup and simplification of the music playing code
svn-id: r31691
2008-04-24 14:12:08 +00:00
Filippos Karapetis
68c511423e Cleanup
svn-id: r31686
2008-04-24 13:12:08 +00:00
Filippos Karapetis
e14746db3c Slight cleanup to o1_PLAYSND
svn-id: r31684
2008-04-24 05:17:51 +00:00
Benjamin Haisch
efeb8a3193 Added (early) midi player code.
Added "screen flash" effect.
Implemented opcodes:
- o1_PLAYMUS
- o1_STOPMUS
- o1_ISMUS
- o1_FLASH
- o1_LOADSND
- o1_LOADMUS

svn-id: r31682
2008-04-23 23:22:02 +00:00
Torbjörn Andersson
97932a8f32 This memory is released with free(), so it has to be allocated with malloc(),
not new. Fixes a Valgrind warning.

svn-id: r31678
2008-04-23 21:07:11 +00:00
Torbjörn Andersson
718787d700 Fixed signed/unsigned warning.
svn-id: r31677
2008-04-23 20:56:10 +00:00
Benjamin Haisch
d0ad5867e0 Fixed palette issues when showing the inventory and the menu.
Moved drawing code from drawFlex/drawAnimFrame to drawSurface.
Implemented opcodes:
- o1_VISUALFX
- o1_SCREENLOCK
- o1_SETTIMER
- o1_SETGROUND
- o1_SETCLIP
- o1_SETEXCLUDE

svn-id: r31675
2008-04-23 20:12:06 +00:00
Torbjörn Andersson
1267ed09db Surely, it's the "version" of Return to Zork with rtzcd.red that should have
the GF_CD_COMPRESSED flag?

svn-id: r31672
2008-04-23 19:11:13 +00:00
Filippos Karapetis
1a6bd23780 Removed file existence checks to determine game version and added game flags instead. Added the MD5 of the English floppy version of Return to Zork
svn-id: r31670
2008-04-23 18:22:06 +00:00
Benjamin Haisch
4f108832c3 Loading from rtzcd.red should now actually work.
svn-id: r31668
2008-04-23 17:41:28 +00:00
Torbjörn Andersson
a643a8cc8a Fixed warning about potentially undefined behaviour.
svn-id: r31667
2008-04-23 17:39:13 +00:00
Filippos Karapetis
b69ffa922a In-game sound effects and voices should be working correctly now.
Implemented the following opcodes:
- o1_PLAYSND
- o1_ISSND
- o1_STOPSND
- o1_PLAYVOICE
- o1_SOUNDRATE
- o1_SETVOLUME

svn-id: r31666
2008-04-23 17:21:49 +00:00
Benjamin Haisch
6069dba988 Implemented direct loading of rtzcd.dat from the archive rtzcd.red, i.e. the game doesn't have to be installed first to get rtzcd.dat. Also added the respective detection entry.
svn-id: r31661
2008-04-23 08:08:37 +00:00
Filippos Karapetis
52f43fcff4 Fixed Return to Zork game ID
svn-id: r31656
2008-04-22 10:18:32 +00:00
Filippos Karapetis
b302ca9a7e Implemented o1_EVENTKEY. Removed some debug delays
svn-id: r31655
2008-04-22 08:08:07 +00:00
Filippos Karapetis
f1a27858d5 Added palette locking and some wip sound playing code. Some cleanup
svn-id: r31654
2008-04-22 07:40:28 +00:00
Filippos Karapetis
056547f45f Removed 2 obsolete fixmes
svn-id: r31653
2008-04-22 07:38:49 +00:00
Filippos Karapetis
54485c24c5 Some palette related fixes
svn-id: r31650
2008-04-21 20:20:34 +00:00
Filippos Karapetis
169bf5ddba More code merge
svn-id: r31649
2008-04-21 18:46:57 +00:00
Filippos Karapetis
36bec1d5c8 Code merge
svn-id: r31648
2008-04-21 18:40:28 +00:00
Filippos Karapetis
008c4ca9d6 Added missing ScummVM headers
svn-id: r31647
2008-04-21 17:47:00 +00:00
Filippos Karapetis
4e62a13a67 Performed some optimizations to the PMV player
svn-id: r31644
2008-04-21 16:52:09 +00:00
Benjamin Haisch
42e8f1f882 Fixed drawAnimFrame (don't draw anything if the frame number is invalid)
svn-id: r31642
2008-04-21 11:17:51 +00:00
Benjamin Haisch
7531e54006 Fixed palette handling in PMV videos.
svn-id: r31641
2008-04-21 11:05:44 +00:00
Travis Howell
d003b7e6a8 Add detection of the Return to Zork demo.
svn-id: r31640
2008-04-21 08:51:25 +00:00
Benjamin Haisch
651bc3a278 Removed Functor2 class definition.
svn-id: r31639
2008-04-21 07:29:35 +00:00
Benjamin Haisch
5279c58072 Fixed endian issues in get/setObjectProperty.
svn-id: r31638
2008-04-21 07:28:13 +00:00
Torbjörn Andersson
179479f6f4 Made the sound less choppy. Though we may have to do some kind of double
buffering here to completely fix the problem.

svn-id: r31627
2008-04-20 19:17:36 +00:00
Filippos Karapetis
ad6f9caf51 Compilation fixes by lordhoto
svn-id: r31619
2008-04-20 17:15:31 +00:00
Torbjörn Andersson
00a8c77527 Catch EVENT_QUIT events, too. I realize that g_system->quit() isn't the nicest
way to quit a game, but it beats not being able to quit at all.

svn-id: r31617
2008-04-20 16:18:50 +00:00
Torbjörn Andersson
7e07dd5ec7 Changed spaces to tabs.
svn-id: r31610
2008-04-20 15:36:40 +00:00
Filippos Karapetis
d0590a09ea Initial import of the work in progress MADE engine
svn-id: r31599
2008-04-20 14:43:56 +00:00