Cameron Cawley
6c20aaa057
GRIM: Move the engine options into the MetaEngine subclass
2022-11-16 23:58:54 +01:00
Donovan Watteau
16e2068aec
JANITORIAL: Fix various single-character typos
2022-11-11 20:55:56 +01:00
Hubert Maier
d77a2ad328
GRIM: Correct spelling mistake
...
orignal -> original
2022-10-27 15:56:12 +02:00
Hubert Maier
25f181bbc1
GRIM: Correct spelling mistake
...
occassion -> occasion
2022-10-27 15:56:11 +02:00
Le Philousophe
a4073b8c6f
GRIM: Don't use unsafe sprintf and vsprintf
2022-10-23 22:46:19 +02:00
Le Philousophe
e15aa92118
GRIM: Don't use unsafe strcat and strcpy
2022-10-23 22:46:19 +02:00
Donovan Watteau
671603aa27
GRIM: Backport a Bison fix for uninitialized yyval (Trac#13784)
...
Reported by MSVC whenever pressing a key in EMI in debug builds.
Upstream fix from GNU Bison 1.28c on 2000-10-02:
https://git.savannah.gnu.org/cgit/bison.git/commit/?id=da9abf4366d824a23da3d2416856e9a482794eb1
2022-10-18 08:42:12 +03:00
Einar Johan Trøan Sømåen
614ad647d1
GRIM: Don't error out on "specialty" texture loading.
...
Specialty textures are not loaded from files, so
the previous change broke EFMI entirely. This change
makes an exception for specialty textures.
2022-10-16 22:43:20 +02:00
Einar Johan Trøan Sømåen
e70c103ca3
GRIM: Initialize Overlay::_layer
...
Fixes COVERITY: 1433532
2022-10-02 01:27:13 +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
Einar Johan Trøan Sømåen
1eb48aa90a
GRIM: Check for success in loading material.
...
Fixes COVERITY: 1433524
2022-10-02 01:13:10 +02:00
Einar Johan Trøan Sømåen
18a34fc9be
GRIM: Check that Bitmap-loading succeeded.
...
Fixes COVERIY: 1230890
2022-10-02 01:06:12 +02:00
Einar Johan Trøan Sømåen
068fd722e0
GRIM: Initialize GfxBase::_globalScaleW/_globalScaleH
...
This is a field in GfxBase that is only used (and initialized)
in GfxOpenGL, hence it will be left uninitialized in the other
renderers.
Fixes COVERITY: 1009909
2022-10-02 00:57:59 +02:00
Einar Johan Trøan Sømåen
109dbdb5b7
GRIM: Initialize Costume::_components in Costume::load
...
Presumably the indata always defines the parents before
the children, but nevertheless doesn't hurt to fix this,
if nothing else to make tools like Coverity happy.
Fixes COVERITY: 1470594
2022-10-02 00:50:42 +02:00
Einar Johan Trøan Sømåen
9647b9e707
GRIM: Initialize Model::_radius
...
It was left uninitialized if loadBinary was run,
presumably it was only used in use cases where that
was the loader that was run.
Fixes COVERITY: 1470688
2022-10-02 00:41:40 +02:00
Einar Johan Trøan Sømåen
ae8c19f894
GRIM: free() malloc-ed data in iMuse-callback.
...
The data-buffer is allocated using malloc(), and
should thus be free()-ed, not delete[]-ed.
Fixes COVERITY: 1433506
2022-10-02 00:38:12 +02:00
Einar Johan Trøan Sømåen
8e6ff75013
GRIM: Initialize SmushPlayer::_currentVideoIsTheora
...
Not likely to be a problem, as it is guaranteed to be
fully set once loadFile() has been called. But nevertheless
all fields should have a defined value after the constructor
has been run.
Fixes COVERITY: 1433423
2022-10-02 00:25:58 +02:00
Einar Johan Trøan Sømåen
3518c370bb
GRIM: Flip order of width/height in surface-creation.
...
This has 0 impact beyond pedantic correctness, as the
surface is square in this case, but doesn't hurt to
silence this warning properly.
Fixes COVERITY: 1433334
2022-10-02 00:16:24 +02:00
Einar Johan Trøan Sømåen
d886c8e63e
GRIM: Fix leak in Overlay
...
Fixes COVERITY: 1436013
2022-09-27 00:32:37 +02:00
Einar Johan Trøan Sømåen
fec908a910
GRIM: Initialize more members of GrimEngine
...
Partially fixes COVERITY 1009908
2022-09-27 00:32:37 +02:00
Cameron Cawley
fbd379c26b
ENGINES: Adjust ADGameFlags to fit the specified range
2022-09-19 01:04:37 +02:00
antoniou79
50c8fbb6a0
GRIM: Use GUIErrorMessageWithURL() instead of GUI::MessageDialogWithURL()
...
GUIErrorMessageWithURL() will eventually call GUI::MessageDialogWithURL()
2022-08-21 18:46:21 +03:00
antoniou79
8eefe5ff52
GRIM: Use MessageDialogWithURL for req data files url warning
2022-08-21 18:46:21 +03:00
antoniou79
c1d858a438
GRIM: Move required data url into a variable String
...
This allows to use correct url based on detected game
2022-08-21 18:46:21 +03:00
antoniou79
9f7ed010a2
GRIM: Use GUIErrorMessageWithURL for missing patches
...
Also use hardcoded url for the download location address
2022-08-21 18:44:23 +03:00
Donovan Watteau
27f9a460b5
JANITORIAL: Fix "the the" and similar typos
2022-07-29 19:36:40 +03:00
Cameron Cawley
f3b094e53f
ENGINES: Change the MetaEngineDetection interface to match MetaEngine
2022-07-23 23:31:58 +02:00
Le Philousophe
462536c287
GRIM: Fix text not displaying
...
The setUniform function was not called on the active shader which got
deactivated.
2022-07-21 21:16:03 +02:00
Le Philousophe
98c306376f
OPENGL: Merge both OpenGL shaders objects
2022-06-26 18:32:10 +02:00
Le Philousophe
4ab044a254
OPENGL: Merge both OpenGL contexts
2022-06-26 18:32:10 +02:00
Paweł Kołodziejski
598ebde1b9
GRIM: Added comments to LUA opcodes: 'SetActorClipPlane' and 'SetActorClipActive'
2022-06-19 15:46:35 +02:00
Paweł Kołodziejski
8c1a2e7742
GRIM: Added comments to LUA opcode SetActorFrustrumCull
2022-06-19 13:43:04 +02:00
Paweł Kołodziejski
763cf46fc1
GRIM: Put imuse warnings into debug channels
2022-06-19 07:39:47 +02:00
Paweł Kołodziejski
822d2e5319
GRIM: Added safety check. Make easier to debug
2022-06-18 21:09:43 +02:00
Paweł Kołodziejski
d8d42bf2fe
GRIM: Ported debug shadow plane draw from opengl to tinygl
2022-06-18 18:56:30 +02:00
Paweł Kołodziejski
ce0427e130
GRIM: Moved debug color shadow draw
2022-06-18 18:55:35 +02:00
Paweł Kołodziejski
bad56df94a
GRIM: Disable not used code in WalkActorTo opcode
2022-06-08 07:23:07 +02:00
Paweł Kołodziejski
06902574b4
GRIM: Janitorial
2022-06-08 01:12:00 +02:00
Paweł Kołodziejski
72cbf1e323
GRIM: Remove not needed condition for speed limit
2022-06-07 23:49:30 +02:00
Paweł Kołodziejski
4565711254
GRIM: Improve special case for delay in loop for emscripten
2022-06-07 23:42:49 +02:00
Paweł Kołodziejski
26c52fd813
GRIM: Put debug traces on different level
2022-06-07 23:15:27 +02:00
Paweł Kołodziejski
680772b8af
GRIM: Use generic description in game for TinyGL renderer
2022-06-07 23:10:26 +02:00
Paweł Kołodziejski
300a56ee46
GRIM: Put debug trace on different level
2022-06-07 23:09:15 +02:00
Paweł Kołodziejski
58e2ca1481
GRIM: Implemented opcode SetActorRoll
2022-06-07 23:01:06 +02:00
Paweł Kołodziejski
414e1a9b0c
GRIM: partially implemented opcode SetActorInvClipNode and added some comments.
2022-06-07 22:59:16 +02:00
Paweł Kołodziejski
365e7d8599
GRIM: Added comment to opcode
2022-06-07 05:42:09 +02:00
Paweł Kołodziejski
f5de288e98
GRIM: Monkey4 is not yet supported.
2022-06-06 08:51:39 +02:00
Paweł Kołodziejski
a1da2c22b1
GRIM: Janitorial
2022-06-06 08:42:54 +02:00
Paweł Kołodziejski
25b50c058e
GRIM: Fixed compilation
2022-06-05 22:46:34 +02:00
Paweł Kołodziejski
18fb7e72d8
GRIM: Implemented Lua V1 'GetCameraLookVector' opcode
2022-06-05 22:16:42 +02:00