Commit Graph

27 Commits

Author SHA1 Message Date
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Max Horn
dd98126423 Engines: Fused several init&go methods into a single run method
svn-id: r39003
2009-03-01 04:42:46 +00:00
Max Horn
3fcbda829a Merged Engine::go() and ::init() into a new run() method (currently implemented by calling the existing init&go methods; to be cleaned up by engine authors
svn-id: r39002
2009-03-01 04:30:55 +00:00
Benjamin Haisch
ee1cae3ebc Removed unused variable
svn-id: r38372
2009-02-16 15:50:27 +00:00
Benjamin Haisch
22812367aa - Fixed/completed cd audio support (sfPlayCd and sfGetCdTime) for Manhole:N&E and RtZ CD
svn-id: r36217
2009-02-04 19:15:12 +00:00
Benjamin Haisch
a8562cf64b - Implemented sfGetMusicBeat (used in several games as some kind of timer)
svn-id: r36023
2009-01-23 12:17:12 +00:00
Filippos Karapetis
68a20e2aba - Removed _gameVersion, engine versions are set in the game detection entries now
- Renamed ProjectReader -> ResourceReader
- Added some WIP code for the EGA version of the Manhole (still not working/disabled)
- The resource reader now closes the files it has opened correctly when it's deleted

svn-id: r35877
2009-01-16 23:20:17 +00:00
Benjamin Haisch
78776638d3 Reworked the sound energy code
svn-id: r35845
2009-01-13 16:18:22 +00:00
Benjamin Haisch
2ce4a32fb6 - Implemented cmd_restart (for the restart functionality in Return to Zork)
svn-id: r35378
2008-12-15 09:01:43 +00:00
Benjamin Haisch
8709acb6de - Global options dialog support
svn-id: r34981
2008-11-10 00:19:43 +00:00
Benjamin Haisch
8ffcd984b0 Implemented RTL support
svn-id: r34933
2008-11-07 21:59:25 +00:00
Max Horn
40136f2590 Switched various Engine APIs to use Common::Error
svn-id: r34916
2008-11-06 17:05:54 +00:00
Benjamin Haisch
7bceafb3f2 - Fixed sprite drawing in Rodney's Funscreen
- Handle mouse button up events and event number fixes in MadeEngine::handleEvents()
- Use milliseconds -> game ticks calculation based on Windows version of the original engine
- "Rodney's Fun Screen" -> "Rodney's Funscreen"

svn-id: r32731
2008-06-18 11:01:51 +00:00
Benjamin Haisch
fb31c62ad8 - Added support for Rodney's Fun Screen
- Added audio cd playback (still kinda broken though)
- Renamed getObjectPropertyPtr to findObjectProperty

svn-id: r32669
2008-06-12 11:09:04 +00:00
Benjamin Haisch
4afd19ad0f Fixed premature stopping of sounds/voices.
svn-id: r32354
2008-05-28 22:15:10 +00:00
Benjamin Haisch
4074d49844 - Moved event polling from sfPollEvent to runScript
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position

svn-id: r32205
2008-05-21 10:07: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
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
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
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
Filippos Karapetis
068372ac94 Cleanup and simplification of the music playing code
svn-id: r31691
2008-04-24 14:12:08 +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
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
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
Filippos Karapetis
b302ca9a7e Implemented o1_EVENTKEY. Removed some debug delays
svn-id: r31655
2008-04-22 08:08:07 +00:00
Travis Howell
d003b7e6a8 Add detection of the Return to Zork demo.
svn-id: r31640
2008-04-21 08:51:25 +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