Eugene Sandulenko
fa387821b3
GRIM: LUA: Replace sprintf -> snprintf
2022-12-16 11:06:08 +01:00
Le Philousophe
a4073b8c6f
GRIM: Don't use unsafe sprintf and vsprintf
2022-10-23 22:46:19 +02: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
ff74216678
LUA: Fix copy'n'paste error
2014-12-31 15:47:36 +01:00
Christian Krause
8ba97cb063
LUA: Fix memleak of lua file descriptors
...
- don't delete the common LuaFile objects (like g_fin, g_stdout, ...)
separately
- don't delete the LuaFile objects in closefile()
- delete all LuaFile objects in g_files at once in lua_iolibclose()
- for some objects LuaFile::close() is called twice (once by closefile()
and a second time by lua_iolibclose()) but this is uncritically due to
the way LuaFile::close() is implemented
2014-12-31 15:47:36 +01:00
Joel Teichroeb
0f3da43694
GRIM: Change NULL to nullptr.
2014-05-30 17:43:08 -07:00
Joel Teichroeb
18c3940eba
GRIM: Clean up io_readfrom with suggestions from Coverity
2013-07-07 13:29:50 -07:00
Einar Johan Trøan Sømåen
ab34a830c1
GRIM: Avoid compressing LUA-output Savedata
2013-05-26 12:20:33 +02:00
Giulio Camuffo
c08c5aaa31
GRIM/Lua: Don't close the stdin and stdout files when setting them. Fix #711
2013-01-23 14:38:44 +01:00
Dries Harnie
290392bbfc
EMI: Fix stack clobbering in io_writeto, io_appendto
2012-11-20 00:25:48 +01:00
Einar Johan Trøan Sømåen
c008e8a7dd
EMI: Fix .\saves\efmi.cfg-loading for EMI.
2012-11-14 01:27:02 +01:00
Joel Teichroeb
115e3232b8
GRIM: Remove extra semicolons
2012-05-05 22:59:51 -07:00
Joel Teichroeb
e63eda39bc
GRIM: Remove old includes and their associated forbidden symbol exeptions
2012-05-05 22:32:21 -07:00
Joel Teichroeb
83a70dde4d
GRIM: Fix a memory leak closing files in lua
2012-03-24 16:53:01 -07:00
Andrea Corna
235463e947
GRIM: Move some hacks from engine to patches
2012-01-06 23:01:29 +01:00
Giulio Camuffo
f2d7d127fc
GRIM: Make ResourceLoader able to open non-lab files. Fix credits.
...
The credits are read from the file credits/ingame.txt. Fix #228
2011-12-16 14:48:42 +01:00
Matthieu Milan
3a87cd3f33
EMI: Fix .\saves\efmi.cfg in ~/.residual
2011-10-02 18:56:09 +02:00
Giulio Camuffo
38e208c00c
GRIM: #includes cleanup.
2011-07-23 12:14:33 +02:00
Pawel Kolodziejski
7329a5d164
ALL: sync with scummvm
2011-06-09 11:17:15 +02:00
Pawel Kolodziejski
356c9c8c07
sync with scummvm
2011-05-18 23:33:39 +02:00
Pawel Kolodziejski
0f5de71f70
sync with scummvm
2011-05-08 15:38:26 +02:00
Giulio Camuffo
ce716e4580
GRIM: Store USERDATAs with a new struct { int32 id; int32 tag }.
...
This way we don't have to deal with casts between integers and void*
anymore.
2011-05-03 16:51:30 +02:00
Giulio Camuffo
29d6b3c5c1
New residualptr type typedeffed to int32 or int64 depending on the arch.
2011-05-02 19:12:15 +02:00
Giulio Camuffo
465ea8951a
GRIM: Moved g_files back into liolib.cpp and made it stay on the heap.
2011-05-02 18:29:24 +02:00
Matthew Hoops
938800e170
GRIM: Silence a ton of warnings
2011-05-02 03:56:42 +08:00
Pawel Kolodziejski
cc8d694d2d
fixed compilation
2011-05-01 19:48:16 +02:00
Giulio Camuffo
1e868dd359
GRIM: Store ids instead of the pointers as lua's userdata objects.
...
Removed ObjectManager as it became useless.
2011-05-01 18:54:29 +02:00
Pawel Kolodziejski
55415ee174
fix compilation using msvc
2011-04-10 11:24:03 +02:00
Giulio Camuffo
e89ca555ef
ObjectManager uses a new T::restoreObject(SaveGame*) function to restore saved objects.
...
This function replaces newObject() and allows more flexibility.
2011-03-21 06:46:35 +08:00
Giulio Camuffo
59dcece9ae
Working savegame support.
...
Implemented also the movement of Manny's head when looking at usable items.
This commit also introduces a new Object class with a ObjectPtr used for
caching the resources loaded by ResourceLoader. This fixes also the lipsync
regression.
2011-03-21 05:41:30 +08:00
Pawel Kolodziejski
edadbb35be
synced code with scummvm trunk
2010-01-21 19:25:03 +00:00
Pawel Kolodziejski
6e489b1c2d
get rid Resource and ResPtr
2009-06-26 16:13:11 +00:00
Pawel Kolodziejski
05c4e4f5d3
fix warnings
2009-06-06 07:03:41 +00:00
Pawel Kolodziejski
a4467bd1d0
convert residual into multi engine support (not all things done yet, WIP)
2009-05-25 19:21:58 +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