Commit Graph
40 Commits
Author SHA1 Message Date
Eugene Sandulenko b07baf493b ALL: Make sure we always allow to override random seed 2023-01-02 16:12:44 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Strangerke 849f383169 MADE: Initialize some variables, remove a useless variable 2015-01-27 07:14:55 +01:00
Johannes Schickel 5b70d34479 MADE: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel 7b126c5f24 MADE: Minimize #include usage. 2011-10-09 22:58:37 +02:00
Max Horn 080b590261 MADE: Remove all instances of s(n)printf 2011-06-02 10:49:09 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Matthew Hoops eda17df00c Check if we should quit on every opcode call instead of after every 500. Fixes bug #2960238.
svn-id: r48149
2010-02-27 18:54:21 +00:00
Filippos Karapetis decdc5771a Applied patch #2872409 "MADE engine fixes" by agent-q, with one small modification (initialized _soundStarted in the ScriptFunctions constructor)
svn-id: r44589
2009-10-04 09:31: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
Max Horn f9ecd95d69 Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
2009-03-07 19:24:31 +00:00
Filippos Karapetis 79709646fb Added some unused opcodes in Rodney
svn-id: r36057
2009-01-25 10:46:48 +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
Eugene Sandulenko 696897b058 Whoa! Removing trailing spaces.
svn-id: r35648
2009-01-01 15:06:43 +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 8ffcd984b0 Implemented RTL support
svn-id: r34933
2008-11-07 21:59:25 +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 555ddf9f95 Updated script dumper to show opcode offset.
svn-id: r32668
2008-06-12 11:01:08 +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 529800e172 Removed obsolete comment and code in ScriptInterpreter::dumpScript
svn-id: r32204
2008-05-21 07:16:12 +00:00
Benjamin Haisch 828a217a03 - Implemented "stand-alone" script dumper/disassembler; it can be enabled by defining DUMP_SCRIPTS in script.h and starting with at least debug level 1.
- Commented which script opcodes and extended functions are actually used or not.

svn-id: r32202
2008-05-20 20:00:10 +00:00
Filippos Karapetis 970f7e7c93 Some updates to the script dumper
svn-id: r32200
2008-05-20 18:56:22 +00:00
Filippos Karapetis 0c81b70ba3 Rewrote the MADE script dumper, hopefully in a more efficient way
svn-id: r32167
2008-05-18 10:57:58 +00:00
Filippos Karapetis 84610606c1 Slight cleanup and small bugfix for dumpScript()'s cmd_call
svn-id: r32151
2008-05-17 14:47:30 +00:00
Filippos Karapetis 25e7e1999a Initial incomplete version of a MADE script dumper
svn-id: r32150
2008-05-17 13:35:57 +00:00
Benjamin Haisch 4a0b936495 Merged the three ScriptFunctionsXXX classes into ScriptFunctions
svn-id: r32105
2008-05-14 11:19:31 +00:00
Benjamin Haisch 3db45cc0c8 Implemented savegame saving/loading for LGOP2.
svn-id: r32081
2008-05-13 08:21:28 +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
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
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 e0b964b527 Turned printf into warning.
svn-id: r31780
2008-04-29 21:52:26 +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
Filippos Karapetis 9e0cd64629 Implemented cmd_rand() and cmd_randomize()
svn-id: r31714
2008-04-25 07:36:38 +00:00
Filippos Karapetis 9c4b451e1a Unimplemented commands and opcodes throw a warning now
svn-id: r31693
2008-04-24 14:39:01 +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 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