From 6768c115af3c5f0772bcf7b02f34a88a880876c0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 12 Dec 2012 02:49:40 -0800 Subject: Wed Dec 12 02:43:53 PST 2012 --- community/btanks/lua52.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 community/btanks/lua52.patch (limited to 'community/btanks/lua52.patch') diff --git a/community/btanks/lua52.patch b/community/btanks/lua52.patch new file mode 100644 index 000000000..e27d5fdb7 --- /dev/null +++ b/community/btanks/lua52.patch @@ -0,0 +1,21 @@ +diff -wbBur btanks-0.9.8083/engine/luaxx/state.cpp btanks-0.9.8083.my/engine/luaxx/state.cpp +--- btanks-0.9.8083/engine/luaxx/state.cpp 2008-06-08 13:02:39.000000000 +0400 ++++ btanks-0.9.8083.my/engine/luaxx/state.cpp 2012-11-15 18:59:07.000000000 +0400 +@@ -59,7 +59,7 @@ + void State::load(const std::string &fname, const mrt::Chunk &data) { + //throw_ex(("implement me[%s]", fname.c_str())); + reader_state x(data); +- int err = lua_load(state, chunk_reader, &x, fname.c_str()); ++ int err = lua_load(state, chunk_reader, &x, fname.c_str(), NULL); + check_error(state, err); + } + +@@ -81,7 +81,7 @@ + assert(state == NULL); + + //state = lua_newstate(l_alloc, this); +- state = lua_open(); ++ state = luaL_newstate(); + if (state == NULL) + throw_ex(("cannot create lua interpreter")); + -- cgit v1.2.3-54-g00ecf