head 1.2; access; symbols pkgsrc-2013Q3:1.1.0.2 pkgsrc-2013Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2013.10.19.06.43.43; author tsutsui; state dead; branches; next 1.1; commitid oDqiTjP73tm52S9x; 1.1 date 2013.09.15.20.07.07; author tsutsui; state Exp; branches; next ; commitid tSMXoGtCGzdszz5x; desc @@ 1.2 log @Update onscripter to 20130929. pkgsrc changes: - remove previous patch-LUAHandler.cpp, which has been integrated Upstream Changes (only Japanese log available) 20130929: - apply a patch to fix compile failure with Lua 5.2 @ text @$NetBSD: patch-LUAHandler.cpp,v 1.1 2013/09/15 20:07:07 tsutsui Exp $ - Try to adapt to lua 5.2 API changes. --- LUAHandler.cpp.orig 2013-08-12 13:58:38.000000000 +0000 +++ LUAHandler.cpp @@@@ -559,11 +559,11 @@@@ void LUAHandler::init(ONScripter *ons, S this->ons = ons; this->sh = sh; - state = lua_open(); + state = luaL_newstate(); luaL_openlibs(state); - lua_pushvalue(state, LUA_GLOBALSINDEX); - luaL_register(state, NULL, lua_lut); + lua_pushglobaltable(state); + luaL_setfuncs(state, lua_lut, 0); lua_pushlightuserdata(state, this); lua_setglobal(state, ONS_LUA_HANDLER_PTR); @ 1.1 log @Update onscripter to 20130812. pkgsrc changes: - add patch-LUAHandler.cpp to adapt to lua 5.2 API changes Upstream Changes (only Japanese log available) 20130812: - make savescreenshot and savescreenshot2 insns allow any filenames, i.e. allow filenames without .bmp extension as the original ONScripter does. @ text @d1 1 a1 1 $NetBSD$ @