aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/util/lua/loadlib.cpp
AgeCommit message (Collapse)Author
2019-08-13COMMON: Move Lua into Common and make it into...Nipun Garg
an engine feature
2017-11-12SWORD25: Suppress GCC Cast Qualification Warnings.D G Turner
Since lua_pushlightuserdata and lua_touserdata operate on (void *) values, it is tricky to fix these warnings "correctly" without looking at invasive changes to a significant amount of Lua internal code. Since these pointers to consts are already being recast to drop the const qualifications, then removing the const on the underlying value declaration does not further expose this to change and stops the compiler warnings associated with this. Anyone with a better fix for this can restore the const qualifications later.
2011-08-07JANITORIAL: Remove trailing empty lines.Christoph Mallon
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-25SWORD25: Remove more unused loadlib code + use of fopenMax Horn
The functions loader_C and loader_Croot provably did not do anything besides returning an error, so removing them was safe. For loader_Lua, this was using luaL_loadfile. But that in turn now uses Sword25FileProxy, which only supports loading config.lua, and config.lua is not used via the loadlib mechanism. Therefore, I deemed it safe to also remove this third loader. This leaves loader_preload as only remaining loader. It is probably unused, too, but I did not both to investigate further, as I already achieved my primary goal (getting rid of fopen/fclose use). All other removed functions were unused due to the removal of the first three loader_* functions.
2011-05-23SWORD25: Include scummsys.h from lua.h, partially deal with the consequencesMax Horn
This should help mark the spots that are still non-portable, just follow the FIXMEs.
2011-01-19SWORD25: Strip off unportable functionsEugene Sandulenko
svn-id: r55319
2010-10-18SWORD25: Renamed Lua .c files to .cpp and make it compilableEugene Sandulenko
svn-id: r53568