Commit b969a882 authored by Megax's avatar Megax
Browse files

* Project fajlok at lettek alakitva. Igy most mindegyik normalisan hasznalhato...

* Project fajlok at lettek alakitva. Igy most mindegyik normalisan hasznalhato forditasnal. Nincsenek hibak. KopiLua-ba kerult egy fix. Nem ertem mitol jott elo az a hiba ami elojott de most van a kodban (vagy is volt mert fixaltam).
parent d7bb0c93
...@@ -183,9 +183,8 @@ namespace LuaInterface ...@@ -183,9 +183,8 @@ namespace LuaInterface
/* /*
* CAUTION: LuaInterface.Lua instances can't share the same lua state! * CAUTION: LuaInterface.Lua instances can't share the same lua state!
*/ */
public Lua(LuaCore.lua_State luaState) public Lua(LuaCore.lua_State lState)
{ {
LuaCore.lua_State lState = luaState;
LuaCore.lua_pushstring(lState, "LUAINTERFACE LOADED"); LuaCore.lua_pushstring(lState, "LUAINTERFACE LOADED");
LuaCore.lua_gettable(lState, (int)PseudoIndex.Registry); LuaCore.lua_gettable(lState, (int)PseudoIndex.Registry);
...@@ -200,14 +199,14 @@ namespace LuaInterface ...@@ -200,14 +199,14 @@ namespace LuaInterface
LuaCore.lua_pushstring(lState, "LUAINTERFACE LOADED"); LuaCore.lua_pushstring(lState, "LUAINTERFACE LOADED");
LuaCore.lua_pushboolean(lState, 1); LuaCore.lua_pushboolean(lState, 1);
LuaCore.lua_settable(lState, (int)PseudoIndex.Registry); LuaCore.lua_settable(lState, (int)PseudoIndex.Registry);
this.luaState = lState; luaState = lState;
LuaCore.lua_pushvalue(lState, (int)PseudoIndex.Globals); LuaCore.lua_pushvalue(lState, (int)PseudoIndex.Globals);
LuaCore.lua_getglobal(lState, "luanet"); LuaCore.lua_getglobal(lState, "luanet");
LuaCore.lua_pushstring(lState, "getmetatable"); LuaCore.lua_pushstring(lState, "getmetatable");
LuaCore.lua_getglobal(lState, "getmetatable"); LuaCore.lua_getglobal(lState, "getmetatable");
LuaCore.lua_settable(lState, -3); LuaCore.lua_settable(lState, -3);
LuaCore.lua_replace(lState, (int)PseudoIndex.Globals); LuaCore.lua_replace(lState, (int)PseudoIndex.Globals);
translator = new ObjectTranslator(this, this.luaState); translator = new ObjectTranslator(this, luaState);
LuaCore.lua_replace(lState, (int)PseudoIndex.Globals); LuaCore.lua_replace(lState, (int)PseudoIndex.Globals);
LuaLib.luaL_dostring(lState, Lua.init_luanet); // steffenj: lua_dostring renamed to luaL_dostring LuaLib.luaL_dostring(lState, Lua.init_luanet); // steffenj: lua_dostring renamed to luaL_dostring
} }
...@@ -606,7 +605,7 @@ namespace LuaInterface ...@@ -606,7 +605,7 @@ namespace LuaInterface
*/ */
public string GetString(string fullPath) public string GetString(string fullPath)
{ {
return (string)this[fullPath]; return this[fullPath].ToString();
} }
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment