Benjamin Haisch
f03a27747c
Hide the mouse cursor while a movie plays.
...
svn-id: r32080
2008-05-13 08:19:15 +00:00
Benjamin Haisch
16ac1bcebf
Changed clipping rectangles to use Common::Rect (thanks to [md5]/thebluegr)
...
svn-id: r32077
2008-05-12 22:28:52 +00:00
Benjamin Haisch
f54036b6a4
Implemented o1_EXCLUDEAREA for RtZ
...
svn-id: r32074
2008-05-12 21:47:38 +00:00
Sven Hesse
f833cf4c61
Muting "comparing signed and unsigned values" compiler warning
...
svn-id: r32072
2008-05-12 20:17:54 +00:00
Benjamin Haisch
9b911cadcd
Fixed printTextEx segment fault bug.
...
svn-id: r32071
2008-05-12 20:14:07 +00:00
Benjamin Haisch
3e133f3a9f
Fixed o1_DRAWTEXT in LGOP2
...
svn-id: r32070
2008-05-12 19:29:46 +00:00
Benjamin Haisch
31a8d984a4
Sanity checks in RtZ: o1_PLAYMUS and o1_STOPMUS
...
svn-id: r32068
2008-05-12 17:48:56 +00:00
Benjamin Haisch
11e6527674
Implemented o1_ADDMASK and o1_SETMASK for LGOP2
...
svn-id: r32066
2008-05-12 17:43:33 +00:00
Benjamin Haisch
c3b1b9bf82
Fixed timer resolution/conversion; now the vulture in the first scene of RtZ lands on the sign, and the thunder sound is in sync with the flash screen effect in the Infocom logo screen.
...
svn-id: r32063
2008-05-12 16:10:13 +00:00
Benjamin Haisch
9e39e7d7a2
- Fixed timers, LGOP2 intro should now play correctly
...
- Some cleanup in LGOP2 opcodes
svn-id: r32051
2008-05-12 09:49:10 +00:00
Filippos Karapetis
57dfdbc6c8
Added a sanity check to getFrame()
...
svn-id: r32020
2008-05-11 13:11:01 +00:00
Filippos Karapetis
271ce25823
The backspace key is now working
...
svn-id: r31969
2008-05-09 19:29:17 +00:00
Filippos Karapetis
e0b9dec766
Implemented o1_CLIPAREA
...
svn-id: r31968
2008-05-09 16:11:01 +00:00
Filippos Karapetis
10826a29d2
Removed debug output
...
svn-id: r31967
2008-05-09 16:09:46 +00:00
Filippos Karapetis
3f3ba85bf1
Exit more gracefully when a quit event is triggered
...
svn-id: r31966
2008-05-09 15:49:38 +00:00
Filippos Karapetis
601f0efdd4
Removed now obsolete FIXME
...
svn-id: r31964
2008-05-09 12:23:19 +00:00
Benjamin Haisch
b222d0c539
Added workaround for o1_SNDENERGY
...
svn-id: r31962
2008-05-09 10:56:03 +00:00
Benjamin Haisch
55e4b05b18
- Fixed a bug which sometimes caused crashes when ProjectReader::purgeCache() was called
...
- Some cleanup
svn-id: r31961
2008-05-09 07:22:22 +00:00
Filippos Karapetis
e6d6281c89
o1_ADDSPRITE is not implemented yet, so throw a warning
...
svn-id: r31954
2008-05-08 20:33:28 +00:00
Filippos Karapetis
a9b4058ba9
Fixed some game crashes which occurred when ProjectReader::purgeCache() got called:
...
- MIDI music data is marked to be deleted in o1_STOPMUS now, instead of o1_PLAYMUS.
- Added a FIXME to Screen::setFont() - purgeCache crashes the game if the active font is deleted
svn-id: r31948
2008-05-08 13:23:02 +00:00
Filippos Karapetis
4f108b76a3
Reverted commit #31774
...
svn-id: r31947
2008-05-08 13:17:18 +00:00
Filippos Karapetis
b4e9433820
Silenced MSVC warnings about uninitialized variables
...
svn-id: r31946
2008-05-08 12:20:08 +00:00
Benjamin Haisch
b63ae7dee4
Possibly fixed the sound stuttering in the PMV videos and added frame skipping based on the Gob engine's IMD/VMD player.
...
svn-id: r31944
2008-05-08 11:17:38 +00:00
Benjamin Haisch
b6d2cf3553
Implemented vertical/horizontal flipping of sprites.
...
svn-id: r31931
2008-05-07 17:29:46 +00:00
Benjamin Haisch
a7f5150228
- cmd_return now exits the game if it returns from the main function
...
- Implemented cmd_exit
- PmvPlayer now exits "more gracefully" when the application is closed while playing
svn-id: r31930
2008-05-07 17:28:38 +00:00
Benjamin Haisch
8f9cc2e164
Added patch #1956516 : MADE: Fix Save File Names by clone2727 (with some modifications)
...
svn-id: r31919
2008-05-07 08:25:13 +00:00
Filippos Karapetis
46f1e98688
Fixed RTZ 1.0 game flags and updated copyright
...
svn-id: r31918
2008-05-07 08:19:36 +00:00
Benjamin Haisch
202e4eb410
Added detection for RtZ CD version 1.0 (thanks to spookypeanut)
...
svn-id: r31917
2008-05-07 07:15:42 +00:00
Sven Hesse
7595f20e33
Silencing two signess compiler warnings
...
svn-id: r31897
2008-05-06 15:08:48 +00:00
Benjamin Haisch
9df82055f0
- The Manhole: New and Enhanced is now (partially) playable
...
- Implemented cmd_objectp
- Changed how the script externals array is set up
- Cleanup
svn-id: r31895
2008-05-06 11:45:23 +00:00
Jordi Vilalta Prat
38a8aa516e
Allow static and dynamic plugins to be used at the same time
...
svn-id: r31888
2008-05-06 03:00:26 +00:00
Kari Salminen
4eb9abe99f
Fixed unsigned/signed mismatch warning.
...
svn-id: r31875
2008-05-05 13:11:34 +00:00
Benjamin Haisch
7191b2c515
Added MIDI playback (which doesn't work yet) and fixed compilation (sorry all)
...
svn-id: r31873
2008-05-05 12:51:50 +00:00
Benjamin Haisch
b6c7385eb4
- Renamed XmidiResource to GenericResource
...
- Added MIDI resource type
- Added ScriptFunctionsLgop2 and ScriptFunctionsMhne (for Leather Goddesses of Phobos 2 and The Manhole: New and Enhanced, resp.)
- Many changes for LGOP2 and The Manhole: N&E
Note about the new ScriptFunctions classes:
I copied the ScriptFunctionsRtz class and so duplicated a lot of code. Most of the opcode functions are the same in all games but there might be differences. Once all common opcode functions have been figured out, they'll be moved to a common place (like the ScriptFunctions class).
svn-id: r31871
2008-05-05 10:45:11 +00:00
Sven Hesse
c84b371957
Fixing Fingolfin's commit :P
...
svn-id: r31830
2008-05-02 16:46:06 +00:00
Max Horn
8da048a468
Fix warnings
...
svn-id: r31829
2008-05-02 16:41:54 +00:00
Benjamin Haisch
d1ef9aa213
- Added patch #1955698 : MADE: Add "The Manhole" Detection
...
- Added detection for Leather Goddesses of Phobos 2
Note that these two games will definitely not work as expected and will probably crash!
svn-id: r31810
2008-05-02 12:08:06 +00:00
Benjamin Haisch
7509d66caf
Implemented savegame loading/saving and sprite clipping
...
Fixed bug in Screen::printTextEx
Implemented opcodes:
- o1_DRAWTEXT
- o1_DRAWMENU
- o1_MENUCOUNT
- o1_SAVEGAME
- o1_LOADGAME
- o1_GAMENAME
svn-id: r31794
2008-04-30 20:36:19 +00:00
Benjamin Haisch
9605e28f7b
Fixed bug in o1_READMENU where an incorrect string length was returned.
...
Also fixed o1_EVENT to return the correct event number when a key was pressed and removed the debug code there.
svn-id: r31781
2008-04-29 21:56:13 +00:00
Benjamin Haisch
e0b964b527
Turned printf into warning.
...
svn-id: r31780
2008-04-29 21:52:26 +00:00
Benjamin Haisch
5975956f2c
Fixed possible endian problems in getObjectPropertyPtr.
...
svn-id: r31779
2008-04-29 21:51:55 +00:00
Max Horn
01dcd766af
Fix warning
...
svn-id: r31778
2008-04-29 21:27:16 +00:00
Filippos Karapetis
14523bd3bb
Fixed crash that occurred when skipping a video while MIDI music was active
...
svn-id: r31775
2008-04-29 15:51:22 +00:00
Filippos Karapetis
42412ad2c6
Fixed crash that occurred when Ms Peeper's test started
...
svn-id: r31774
2008-04-29 15:41:12 +00:00
Benjamin Haisch
fc6fe46951
Implemented text drawing and cleanup.
...
svn-id: r31756
2008-04-28 10:56:21 +00:00
Benjamin Haisch
3dc6263b17
Started work on text drawing code.
...
svn-id: r31719
2008-04-25 11:20:43 +00:00
Benjamin Haisch
134762be38
Fixed cmd_rand and cmd_randomize and some cleanup.
...
svn-id: r31718
2008-04-25 11:07:56 +00:00
Benjamin Haisch
5540ef2d67
Added FontResource type
...
svn-id: r31717
2008-04-25 11:05:56 +00:00
Benjamin Haisch
4bcf3ab823
(Poissbly) fixed sound glitches due to a non-implemented decoding variant.
...
svn-id: r31716
2008-04-25 11:02:37 +00:00
Filippos Karapetis
2172eee072
Center videos to screen
...
svn-id: r31715
2008-04-25 10:43:47 +00:00
Filippos Karapetis
9e0cd64629
Implemented cmd_rand() and cmd_randomize()
...
svn-id: r31714
2008-04-25 07:36:38 +00:00
Joost Peters
c622414022
add detection entry for 1.2 CD version.
...
the md5 of rtzcd.dat is identical to the existing entry, so no additional "unpacked" entry was added.
svn-id: r31713
2008-04-24 23:11:34 +00:00
Filippos Karapetis
673784e6ef
Typo
...
svn-id: r31712
2008-04-24 23:07:22 +00:00
Filippos Karapetis
8b7486b5ca
Implemented opcodes o1_DROPSHADOW, o1_TEXTCOLOR, o1_OUTLINE. Added some initial code for opcode o1_TEXTRECT
...
svn-id: r31711
2008-04-24 23:06:21 +00:00
Filippos Karapetis
b861f38d10
Some initial code for font loading
...
Implemented opcode o1_LOADANIM
svn-id: r31698
2008-04-24 18:45:11 +00:00
Torbjörn Andersson
dd1ae2dd4f
Fixed warning.
...
svn-id: r31697
2008-04-24 17:50:15 +00:00
Filippos Karapetis
9c4b451e1a
Unimplemented commands and opcodes throw a warning now
...
svn-id: r31693
2008-04-24 14:39:01 +00:00
Filippos Karapetis
00e652f8e4
More cleanup
...
svn-id: r31692
2008-04-24 14:15:35 +00:00
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