Commit Graph
33 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Strangerke 2178770898 HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
Nipun Garg a9e65176a1 HDB: Add more Platform-specific Constants 2019-09-03 17:17:30 +02:00
Eugene Sandulenko 17ef555e2d HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko d4f927f338 HDB: Put both data and Lua saves into single file 2019-09-03 17:17:26 +02:00
Eugene Sandulenko 2909d9a9a0 HDB: Move save filename generation to genSaveFileName() 2019-09-03 17:17:22 +02:00
Nipun Garg a8b4749c7e HDB: Add Input::assignKey(), LuaScript::isValid() 2019-09-03 17:17:16 +02:00
Nipun Garg b7b8b23d29 HDB: Add openFile, write, closeFile Lua functions 2019-09-03 17:17:15 +02:00
Nipun Garg 85a8209d97 HDB: Add save/load for the Lua Globals environment 2019-09-03 17:17:15 +02:00
Nipun Garg 961f3b46f0 HDB: Add structs and functions for Lua Globals 2019-09-03 17:17:15 +02:00
Eugene Sandulenko 73be5db12e HDB: Attempt to implement hot patches 2019-09-03 17:17:12 +02:00
Eugene Sandulenko 03f1a13786 HDB: Simplify executeChunk() function 2019-09-03 17:17:12 +02:00
Eugene Sandulenko 347dd30f78 HDB: Implement loadLua() 2019-09-03 17:17:10 +02:00
Eugene Sandulenko 74eb242b5a HDB: Unstub HDBGame::restartMap() 2019-09-03 17:17:09 +02:00
Nipun Garg 00e6ce2680 HDB: Add invokeLuaFunction() 2019-09-03 17:17:02 +02:00
Nipun Garg 368e80c75f HDB: Add lua_push functions and call() 2019-09-03 17:17:01 +02:00
Nipun Garg a2af042430 HDB: Add cineMoveMaskedPic() Lua function 2019-09-03 17:16:58 +02:00
Eugene Sandulenko 641c2a9179 HDB: Added Lua print stack utility function 2019-09-03 17:16:51 +02:00
Nipun Garg a9a2ee0479 HDB: Add getStringOffStack() 2019-09-03 17:16:50 +02:00
Nipun Garg c1511959d7 HDB: Fix argument type in checkParameters 2019-09-03 17:16:48 +02:00
Nipun Garg dafe1b6a16 HDB: Add checkParameters() to LuaScript 2019-09-03 17:16:47 +02:00
Nipun Garg 2c55d072d3 HDB: Add support to call Lua functions
This allows us to easily to call functions
defined in the Lua scripts.
2019-09-03 17:16:47 +02:00
Nipun Garg 341759cf0d HDB: Add ScriptPatches for upvalues and setglobal
Moved the upvalue-syntax modification from
sanitizeComments to the scriptPatches
2019-09-03 17:16:43 +02:00
Nipun Garg 12a9036dd6 HDB: Add scriptPatch and add in sanitizeScript 2019-09-03 17:16:43 +02:00
Eugene Sandulenko a54d05ab95 HDB: Added more debugging facilities 2019-09-03 17:16:43 +02:00
Eugene Sandulenko fcdebdc015 JANITORIAL: Whitespace fixes 2019-09-03 17:16:43 +02:00
Nipun Garg f9beeb66d3 HDB: Add init() to load the GLOBAL_LUA code 2019-09-03 17:16:43 +02:00
Nipun Garg 24d42ce43a HDB: Remove the char *name arg from initScript 2019-09-03 17:16:43 +02:00
Nipun Garg ba1081b87c HDB: Correct the include paths from X.h to hdb/X.h 2019-09-03 17:16:42 +02:00
Nipun Garg 4b8f7f339e HDB: Add stripComments() to strip C-style comments
There are a few C-style comments present in the
Lua files
2019-09-03 17:16:42 +02:00
Nipun Garg bc638cf251 HDB: Add LuaScript::initScript
It creates a new Lua environment whenever a new
Lua script is loaded
2019-09-03 17:16:42 +02:00
Nipun Garg 0ad5f7e180 HDB: Add _systemInit check to LuaScript 2019-09-03 17:16:42 +02:00
Nipun Garg f88b1d0d6a HDB: Add the LuaScript class to integrate Lua
It creates lua_State (s), initializes them and
executes Lua files in them
2019-09-03 17:16:42 +02:00