Commit Graph

207 Commits

Author SHA1 Message Date
Filippos Karapetis
a983c88e37 Reverted parts of revisions #44292, #44293, #44295 and #44296, to prevent warnings and issues in compilers which don't support NORETURN
svn-id: r44312
2009-09-24 17:24:42 +00:00
Filippos Karapetis
c91f5759b9 MADE: Fixed some warnings about unreachable code
svn-id: r44296
2009-09-24 09:51:26 +00:00
Matthew Hoops
e858994060 Fix bug #2843050 (RTZ: Crash to desktop with demo). Don't assert out when a resource slot can't be found.
svn-id: r43676
2009-08-23 21:15:47 +00:00
Benjamin Haisch
0762bb7cf6 - PMV player: Use frame count from PVM file and fix incorrect "invalid chunk type" warning
- Fix sprite drawing glitch with vertically flipped sprites (bug #2825925)

svn-id: r43521
2009-08-18 19:42:13 +00:00
Johannes Schickel
b33b90ecd0 Made AGOS, DRASCULA, GOB, GROOVIE, MADE, SCUMM and TINSEL properly stop CD audio playback on engine quit. (This only problem affected playback from CD, not from ripped audio files)
svn-id: r43512
2009-08-18 15:31:26 +00:00
Johannes Schickel
7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00
Eugene Sandulenko
1bd6f6c99f Added game GUI options to advancedDetector and updated all engines
svn-id: r41272
2009-06-06 17:56:41 +00:00
Max Horn
7140dda5e5 MADE: cleanup
svn-id: r41070
2009-05-31 15:07:55 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
8b725eef83 Reduced the CPU load of screen effects, by reducing the number of palette changes. The visual differences are negligible, but CPU load went down by around 10%.
svn-id: r39404
2009-03-14 19:47:23 +00:00
Filippos Karapetis
79d8432128 Simplified screen effects. Removed copyRect() and reposition()
svn-id: r39401
2009-03-14 17:32:43 +00:00
Filippos Karapetis
6852080916 Merged loadRGBPalette() inside setRGBPalette() (that's the only place it's used and where the screen palette is set). Added a wrapper for copyRectToScreen(), to remove some duplicated code inside the ScreenEffects() class
svn-id: r39396
2009-03-14 15:43:37 +00:00
Filippos Karapetis
498a355a74 Reduced CPU usage of the MADE engine by about 10% (by profiling the code)
- Added delays in places where the screen gets updated
- Moved event polling inside sfPollEvent() (cause that's where events are polled), instead of after each opcode

svn-id: r39392
2009-03-14 14:58:19 +00:00
Filippos Karapetis
6225bf905f Do not update the screen while waiting
svn-id: r39390
2009-03-14 13:42:43 +00:00
Filippos Karapetis
7da95bbd00 Pushed up the simple script stack function in the header file (this helps isolate them too, so that script.cpp only contains script command functions now)
svn-id: r39389
2009-03-14 12:23:35 +00:00
Filippos Karapetis
5b8cdd502f Added file sizes of the various CD versions of Return to Zork to the detector, as supplied in patch #2629804. Also, updated the game descriptions to provide more information on the version detected
svn-id: r39360
2009-03-12 17:32:13 +00:00
Filippos Karapetis
a784baaae9 Added the Italian and French versions of Return to Zork, as supplied in bug report #2685032
svn-id: r39359
2009-03-12 17:07:13 +00:00
Filippos Karapetis
fd14ebba14 PMV player: stop reallocating the frame buffer on every frame, if its size hasn't been changed
svn-id: r39354
2009-03-12 08:14:05 +00:00
Benjamin Haisch
f525575495 - Applied patch #2668849 by sunmax
svn-id: r39271
2009-03-09 18:19:53 +00:00
Benjamin Haisch
72897a4b09 Added LGOP2 detection entries:
- German, supplied by windlepoons (bug tracker #2675695)
- French and Spanish, supplied by goodoldgeorg (bug tracker #2675759)

svn-id: r39270
2009-03-09 18:03:46 +00:00
Max Horn
f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Jordi Vilalta Prat
047f116515 Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match the meaning of the returned string, as discussed some time ago in scummvm-devel
svn-id: r39132
2009-03-05 12:04:58 +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
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