aboutsummaryrefslogtreecommitdiff
path: root/util/buildbot
Commit message (Collapse)AuthorAge
* Remove common from CMakeLists.txt, README.txt, lua-api.txt and buildwin.shPilzAdam2013-05-18
|
* Update buildwin32.sh to get minetest/commonPerttu Ahola2013-03-21
|
* Update buildbotPilzAdam2013-02-24
|
* Tweak buildbotsfan52013-01-23
| | | | | | | | * CURL support * only download packages if they don't exist * fixed download links (libvorbis and libogg) * manual downloading if automatic downloading fails (only minetest and minetest_game) * mingwm10.dll and openal_stripped.zip are downloaded automatically
* Fix buildbotPerttu Ahola2012-04-03
|
* Add util/buildbotPerttu Ahola2012-04-03
ass="hl pps">"lua_api/l_internal.h" #include "cpp_api/s_base.h" ScriptApiBase* ModApiBase::getScriptApiBase(lua_State *L) { // Get server from registry lua_getfield(L, LUA_REGISTRYINDEX, "scriptapi"); ScriptApiBase *sapi_ptr = (ScriptApiBase*) lua_touserdata(L, -1); lua_pop(L, 1); return sapi_ptr; } Server* ModApiBase::getServer(lua_State *L) { return getScriptApiBase(L)->getServer(); } Environment* ModApiBase::getEnv(lua_State *L) { return getScriptApiBase(L)->getEnv(); } GUIEngine* ModApiBase::getGuiEngine(lua_State *L) { return getScriptApiBase(L)->getGuiEngine(); } bool ModApiBase::registerFunction(lua_State *L, const char *name, lua_CFunction fct, int top ) { //TODO check presence first! lua_pushstring(L,name); lua_pushcfunction(L,fct); lua_settable(L, top); return true; }