Commit Graph
66 Commits
Author SHA1 Message Date
Martin Gerhardy f2c9137979 COMMON: removed foreach.h
now that we are using c++11 we don't need this wrapper anymore
2023-01-07 02:40:44 +02:00
Le Philousophe a4073b8c6f GRIM: Don't use unsafe sprintf and vsprintf 2022-10-23 22:46:19 +02:00
Einar Johan Trøan Sømåen a18212b4d4 GRIM: Initialize Lua value even for Nil to avoid uninit values
In practice shouldn't matter, but just to avoid having
uninitialized values around, we should set the value-field,
even for Nil.

Fixes COVERITY: 1470689
2022-10-02 01:16:36 +02:00
Paweł Kołodziejski 06902574b4 GRIM: Janitorial 2022-06-08 01:12:00 +02:00
Paweł Kołodziejski 20cb0ae228 ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Joel Teichroeb 08dc8b3422 Load coords from text objects 2015-02-03 19:49:47 -08:00
Einar Johan Trøan Sømåen 23401502af GRIM: Force the demo-flag on for grim-demos, thus enabling the english demo with intro video to run 2015-01-18 16:37:51 +01:00
Joseph Jezak 3b34587096 EMI: Remove repositioning of text. 2014-08-04 11:14:28 -04:00
Joseph Jezak 2c563d41b4 EMI: Honor X and Y attributes to spoken lines, rebased from Botje. 2014-08-04 11:14:27 -04:00
Joel Teichroeb 0f3da43694 GRIM: Change NULL to nullptr. 2014-05-30 17:43:08 -07:00
Pawel Kolodziejski 8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Christian Krause f3c81da634 EMI: Fix color of menu entries
The highlighted menu entry is sometimes not correctly colored.
There are multiple textObjects per string (one for each color) and
residualvm draws them in an unspecified order.

To ensure that the correct textObject is drawn on top, each
object gets a layer attribute assigned by the lua code.

The patch adds the layer attribute to the runtime engine and orders the
textObjects by layer before drawing them.
2013-11-27 22:07:25 +01:00
Joel Teichroeb c0cb2f1f9c GRIM: Use a consitent style for constructor initializers 2013-10-26 13:57:55 -07:00
Einar Johan Trøan Sømåen fe3883cecd GRIM: Reformat code to be closer to convention. 2013-07-09 21:12:55 +02:00
Giulio Camuffo 273522a600 GRIM: If setting a walk chore with no costume use the old chore costume. Fix #28 2012-12-28 20:40:02 +01:00
Paweł Kołodziejski 175620b62a ALL: change license headers from LGPL to GPL, and few updates 2012-12-19 23:15:43 +01:00
Einar Johan Trøan Sømåen d6675d2abf EMI: Hack default-fonts for PS2-EMI to avoid crash for now 2012-11-26 17:49:39 +01:00
Dries Harnie 23a7d90b28 EMI: Fix text positioning 2012-11-13 01:14:34 +01:00
Andrea Corna d6703e0545 GRIM: Make gfupd101.exe mandatory 2012-08-08 18:20:51 +02:00
Joel Teichroeb 0dcfaf8fb1 GRIM: Do not include unneeded headers 2012-04-04 16:11:05 -07:00
Joel Teichroeb 63938ba499 GRIM: Clean up unneeded includes and fix some trailing whitespace 2012-03-26 20:12:00 -07:00
Giulio Camuffo 86791ce5cd GRIM: Fix wrong handling of pointers. 2012-03-04 18:20:31 +01:00
Andrea Corna b653a63d6f GRIM: Add support for blacklisting with patchr 2012-03-03 12:23:45 +01:00
Joel Teichroeb aa814e3334 GRIM: Enhance the way that colors are given to lua. 2012-01-27 11:47:28 -08:00
Andrea Corna 58313515ef GRIM: Fix a wrong delete in lua and get rid of single_dofile 2012-01-10 14:48:03 +01:00
Paweł Kołodziejski e350c7f777 renames 2012-01-06 23:29:45 +01:00
Andrea Corna 235463e947 GRIM: Move some hacks from engine to patches 2012-01-06 23:01:29 +01:00
Andrea Corna a198868a61 GRIM: Make lua scripts load from a stream instead of a data Block 2011-12-30 17:17:08 +01:00
Joel Teichroeb f94533e228 EMI: More work on getting EMI to do stuff 2011-12-21 20:35:37 -08:00
Giulio Camuffo 353c42effe GRIM: Use the new foreach macro.
Modify a bit PoolObject::Pool to allow it to be used with foreach.
2011-11-21 22:07:12 +01:00
Giulio Camuffo cbeccc9fa6 GRIM: Move some lua related code into LuaBase. 2011-10-13 20:25:50 +02:00
Giulio Camuffo 5ca9cae83c GRIM: Incapsulate the lua opcodes in a class hierarchy. 2011-10-12 17:57:31 +02:00
Pawel Kolodziejski d5f7717110 rename lua.cpp -> lua_v1.cpp 2009-05-31 07:14:09 +00:00
Pawel Kolodziejski 89eb627622 cleanup 2009-05-30 21:47:18 +00:00
Pawel Kolodziejski b3b5dd69f0 cleanup RotateVector 2009-05-30 21:44:22 +00:00
Pawel Kolodziejski 698ae1810f cleanup 2009-05-30 20:23:57 +00:00
Pawel Kolodziejski 9c36f705ea cleanup 2009-05-30 20:19:29 +00:00
Pawel Kolodziejski b640a444fb verified rest lua opcodes 2009-05-30 20:17:00 +00:00
Pawel Kolodziejski 78b1305d4f verified more lua opcodes 2009-05-30 19:41:27 +00:00
Pawel Kolodziejski 6324cab321 verified more lua opcodes 2009-05-30 18:30:27 +00:00
Pawel Kolodziejski 169878ddc8 * verified PrintDebug, PrintError, PrintWarning, FunctionName, CheckForFile, MakeColor, GetColorComponents, ReadRegistryValue, WriteRegistryValue
* cleanup
2009-05-30 10:15:59 +00:00
Pawel Kolodziejski dba3afc380 cleanup 2009-05-30 09:49:24 +00:00
Torbjorn Andersson c11db9e976 Silence two warnings. (Several remain.) 2009-05-30 08:59:03 +00:00
Pawel Kolodziejski b4c116db36 verified PrintActorCostumes, LoadCostume 2009-05-30 08:57:51 +00:00
Pawel Kolodziejski 52bbfeda50 verified GetPointSector, GetActorSector, IsActorInSector, MakeSectorActive 2009-05-30 08:46:40 +00:00
Pawel Kolodziejski 6e95a9b508 verified InputDialog, IsMessageGoing, ShutUpActor, 2009-05-30 08:16:24 +00:00
Pawel Kolodziejski 2be83a646a verified TextFileGetLine, TextFileGetLineCount, LocalizeString, SayLine 2009-05-30 07:59:49 +00:00
Pawel Kolodziejski 12550e9d04 verified SetActorShadowValid, ActivateActorShadow, AddShadowPlane, SetActorShadowPlane, SetActorShadowPoint, SetActiveShadow, KillActorShadows, GetVisibleThings, SetActorConstrain, SetActorFollowBoxes, PutActorAtInterest, SetActorHead, GetActorLookRate, SetActorLookRate, SetActorPitch 2009-05-30 00:33:23 +00:00
Pawel Kolodziejski 363445a752 verified TurnActorTo, PointActorAt, WalkActorVector, RotateVector 2009-05-28 13:52:51 +00:00