Commit Graph

182 Commits

Author SHA1 Message Date
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
Max Horn
28cf213605 Moved AdvancedDetector from common/ to engines/
svn-id: r36132
2009-01-29 22:13:01 +00:00
Filippos Karapetis
79709646fb Added some unused opcodes in Rodney
svn-id: r36057
2009-01-25 10:46:48 +00:00
Filippos Karapetis
3fb9e1e23a Added some information on sfPlayNote, sfStopNote, sfPlayTele, sfStopTele
svn-id: r36056
2009-01-25 10:16:00 +00:00
Filippos Karapetis
e46c1100a0 Removed leftover debug code
svn-id: r36055
2009-01-25 09:37:53 +00:00
Benjamin Haisch
6297561f7c - Implemented sound decompression for Manhole EGA
svn-id: r36048
2009-01-25 01:58:16 +00:00
Kari Salminen
dfab0ee6d0 Initialize variables that might not be initialized but still used later on line 422 in a debug function call (Fixes MSVC's warnings about 'potentially uninitialized local variable').
svn-id: r36031
2009-01-24 05:02:08 +00:00
Filippos Karapetis
17b82253e9 Removed leftover test code for MADE V1, used in Manhole EGA (though the sound effects in Manhole EGA are still not working)
svn-id: r36028
2009-01-24 01:03:06 +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
ba469d3cbb Silenced MSVC warnings
svn-id: r36002
2009-01-22 19:09:05 +00:00
Max Horn
6692330c41 Fix warning
svn-id: r36000
2009-01-22 18:33:02 +00:00
Benjamin Haisch
5b8105afb3 - Added support for The Manhole EGA version
- Support for 'chunked' picture resources and EGA pictures
- Improved the mouth sync in RtZ (still not perfect, though)
- Removed obsolete TODOs
- Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie

svn-id: r35997
2009-01-22 13:04:29 +00:00
Paul Gilbert
df6aa6361d Slight changes to fx method #9 to more correctly match the original game
svn-id: r35893
2009-01-18 09:29:22 +00:00
Torbjörn Andersson
eb0ea6a297 Make sure that "quit" events are handled immediately. This fixes a warning - or
possibly worse - about an invalid opcode when quitting the game.

svn-id: r35879
2009-01-17 04:50:13 +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
Filippos Karapetis
405680af6d Game database headers are verified now
svn-id: r35861
2009-01-14 11:18:14 +00:00
Torbjörn Andersson
b0fb307978 Fixed warnings.
svn-id: r35859
2009-01-14 05:49:18 +00:00
Filippos Karapetis
fa755b3729 Some updates/observations on script functions
svn-id: r35850
2009-01-13 21:08:22 +00:00
Filippos Karapetis
0ecaa8c4fd - PMV video headers are evaluated correctly now
- PMV video is now stopped correctly if the end of the video has been reached. Removed a relevant hack, which was caused due to an invalid memory read

svn-id: r35849
2009-01-13 20:36:52 +00:00
Filippos Karapetis
305954d34a Save game headers are now verified
svn-id: r35848
2009-01-13 19:29:55 +00:00
Filippos Karapetis
470b07004a Added a possible FIXME
svn-id: r35846
2009-01-13 16:57:59 +00:00
Benjamin Haisch
78776638d3 Reworked the sound energy code
svn-id: r35845
2009-01-13 16:18:22 +00:00
Filippos Karapetis
c2db2b91a5 - Music now works in LGoP2
- Changed the default music volume to 127, down from 255
- Added an explanation/FIXME for the out of sync mouth animations in RTZ
- Added some TODOs and removed some obsolete ones

svn-id: r35843
2009-01-13 10:11:52 +00:00
Paul Gilbert
5afb4ad165 Implemented screen vfx #19 and #20
svn-id: r35834
2009-01-12 07:21:34 +00:00
Paul Gilbert
138c1936a4 Completed screen vfx #8, and also implemented screen vfx #18
svn-id: r35822
2009-01-11 11:15:16 +00:00
Paul Gilbert
75c2dc82b3 Implemented screen vfx #8
svn-id: r35806
2009-01-10 22:11:22 +00:00
Filippos Karapetis
ef78bbdf0d The sound energy buffer is now cleared inside decompressSound()
svn-id: r35753
2009-01-06 13:09:16 +00:00
Filippos Karapetis
de7721c638 Sound energy values are now stored in a list, to account for the fact that the original decompressed sounds on the fly, but we're decompressing them when the sound is being loaded
svn-id: r35752
2009-01-06 12:33:59 +00:00
Paul Gilbert
e2463f77cd Changed sfGetSoundEnergy to use the correct soundEnergy value from decompressing sounds for proper lip-sync
svn-id: r35751
2009-01-06 10:40:38 +00:00
Eugene Sandulenko
696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
51c22d9905 Added stubs for the missing visual effect opcodes
svn-id: r35512
2008-12-23 22:37:24 +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
Max Horn
b085afc451 Removed obsolete refs to OSystem::kFeatureAutoComputeDirtyRects
svn-id: r35240
2008-12-04 19:09:10 +00:00
Johannes Schickel
5a0556f09c Committed my patch #2123680 "SDL: Backend transaction / rollback support".
svn-id: r35062
2008-11-14 22:08:10 +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
Max Horn
142a8d5a51 Simplified AdvancedMetaEngine::fallbackDetect usage
svn-id: r34909
2008-11-06 13:59:39 +00:00
Benjamin Haisch
53163a4284 Implemented visual effects 1, 3, 4, 5, 6, 7 and 16
svn-id: r34823
2008-10-18 21:28:05 +00:00
Benjamin Haisch
99f8add65c - Declared all stack functions as inline
- Sleep some ms after 500 opcodes to reduce CPU load
- Fixed odd bug in LGoP2 where text disappeared quickly without waiting for user input by returning 0x38 in sfShowPage

svn-id: r34746
2008-10-04 21:40:14 +00:00
Benjamin Haisch
cea848303b Return 32000 in sfGetCdTime instead of 0; this fixes the Manhole intro/credits (until the function is actually implemented)
svn-id: r34671
2008-09-28 20:02:01 +00:00
Benjamin Haisch
a776beb2b9 Improved updateScreenAndWait; the mouse cursor is less jerky now in some scenes in Manhole:N&E
svn-id: r34638
2008-09-23 23:16:47 +00:00
Willem Jan Palenstijn
c8eeae8d4d Big patch changing semantics of ReadStream::eos():
eos() now only returns true _after_ trying to read past the end of the stream.

This has a large potential for regressions. Please test!

svn-id: r34549
2008-09-14 22:28:53 +00:00
Max Horn
6bfa3e274a Got rid of File::eof()
svn-id: r34396
2008-09-06 21:23:08 +00:00
Max Horn
531bcf847c Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
svn-id: r34302
2008-09-03 11:22:51 +00:00
Filippos Karapetis
80c47666db Silence MSVC warning about ambiguous usage of CLIP
svn-id: r34296
2008-09-03 09:55:29 +00:00
Torbjörn Andersson
eb35835f5e I believe the setVolume() function has to be guarded by a mutex. (I added this to
the Tinsel engine a while back to fix mysterious problems, but forgot to add it
elsewhere.) Maybe this will fix the mysterious IHNM crashes, as well?

svn-id: r34048
2008-08-20 09:12:11 +00:00
Max Horn
bd296a45fa Fixed unitialized variables
svn-id: r32865
2008-07-01 10:33:25 +00:00
Benjamin Haisch
b6ad2b0035 - Fixed umlauts in printText
- Don't exit when a pmv video couldn't be found

svn-id: r32817
2008-06-27 09:57:38 +00:00