Commit Graph
17 Commits
Author SHA1 Message Date
Paweł Kołodziejski 662481db00 GRIM: LUA: Cleanup variables name 2022-01-14 09:01:44 +01:00
Paweł Kołodziejski 690f9d2a5c GRIM,LUA: Janitorial 2022-01-06 18:26:30 +01:00
Paweł Kołodziejski 5dad979952 Revert "GRIM: Use exceptions instead of jumps"
This reverts commit 7b42887895.
2017-11-30 19:56:43 +01:00
Joel Teichroeb 7b42887895 GRIM: Use exceptions instead of jumps 2017-11-30 08:31:25 +01:00
Christian Krause 187d34d319 EMI: fix pause handling
On vista point it may happen that two sequences for the rock landings
are executed at the same time. Although they intend to be locked via
pause_scripts(), changing the set will call unpause_scripts() and unlock
all of them.

The patch will use the optional parameter for (un)pause_scripts() to
determine whether the pause calls should be counting (e.g. when
switching a set or opening the inventory) or not.
2013-12-24 00:14:49 +01:00
Christian Krause 4b6cf2055b GRIM/EMI: Count pause/unpause calls of LUA scripts
Scripts that have explicitly been paused must not be resumed when
pause_scripts and unpause_scripts are called, e.g. when opening the
inventory, pausing the game or changing sets.

This patch splits the existing paused flag in two separate ones:
 - LState::all_paused is controlled by pause/unpause_scripts (plural)
 - LState::paused is controlled by pause/unpause_script (singular)

For compatibility with Grim savegames both flags are stored in a single
byte, with bit 0 having the same meaning as the former boolean.
2013-12-09 23:40:34 +01:00
Joel Teichroeb d72bea895b EMI: Implement sleep_for in the engine 2012-01-23 17:33:15 -08:00
Giulio Camuffo d7160401ac GRIM: Make LState::paused a bool. 2011-07-20 22:50:54 +02:00
Giulio Camuffo 5012ebfbc9 GRIM: New, cleaner, lua_runtasks(). 2011-07-20 22:27:41 +02:00
Pawel Kolodziejski 356c9c8c07 sync with scummvm 2011-05-18 23:33:39 +02:00
Pawel Kolodziejski 75ff27666b adopted save/restore lua state to recent changes based on disassembly 2009-06-18 16:23:25 +00:00
Pawel Kolodziejski 3a2d539f09 re-implemented multi threading in lua based on disassembly 2009-06-16 22:55:12 +00:00
Pawel Kolodziejski 807fffbbfa remove L macro 2009-06-11 07:01:01 +00:00
Pawel Kolodziejski b6af258b75 update defines for include files 2009-05-26 09:39:42 +00:00
Pawel Kolodziejski 8b8e7e07d2 added namespace Grim 2009-05-25 06:49:57 +00:00
Pawel Kolodziejski a34d883844 update path includes for recent directory changes 2009-05-24 19:13:58 +00:00
Pawel Kolodziejski f58c073a0a move/rename engine into engines/grim 2009-05-24 18:55:19 +00:00