Commit 0893940d authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed iOS build.

parent 4bb35292
......@@ -541,11 +541,15 @@ end
string[] path = fullPath.Split (new char[] { '.' });
LuaLib.LuaGetGlobal (luaState, path [0]);
returnValue = translator.GetObject (luaState, -1);
LuaBase dispose = null;
if (path.Length > 1) {
dispose = returnValue as LuaBase;
string[] remainingPath = new string[path.Length - 1];
Array.Copy (path, 1, remainingPath, 0, path.Length - 1);
returnValue = GetObject (remainingPath);
if (dispose != null)
dispose.Dispose ();
}
LuaLib.LuaSetTop (luaState, oldTop);
......
......@@ -105,12 +105,11 @@
<Reference Include="monotouch" />
<Reference Include="MonoTouch.NUnitLite" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="Resources\" />
<Folder Include="Icons\" />
<Folder Include="LuaTests\" />
</ItemGroup>
<ItemGroup>
<BundleResource Include="..\..\tests\test_32.luac">
<Link>Resources\test_32.luac</Link>
</BundleResource>
<None Include="Info.plist" />
</ItemGroup>
<ItemGroup>
......
#!/bin/sh
cd Core/KeraLua
make -f Makefile.iOS
xbuild KeraLua.sln /p:Configuration=Release
cd ../../
make -f Makefile.iOS run
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