diff --git a/.vs/LuaLoader/v16/.suo b/.vs/LuaLoader/v16/.suo deleted file mode 100644 index c1daa88..0000000 Binary files a/.vs/LuaLoader/v16/.suo and /dev/null differ diff --git a/LuaLoader/LuaLoader.pdb b/LuaLoader/LuaLoader.pdb index 74f63b9..8553bd9 100644 Binary files a/LuaLoader/LuaLoader.pdb and b/LuaLoader/LuaLoader.pdb differ diff --git a/LuaLoader/main.cs b/LuaLoader/main.cs index cdb8492..d8bd6dd 100644 --- a/LuaLoader/main.cs +++ b/LuaLoader/main.cs @@ -18,7 +18,7 @@ public static class BuildInfo public const string Description = "Allow the game to run lua language"; // Description for the Mod. (Set as null if none) public const string Author = "NepQ Neko"; // Author of the Mod. (Set as null if none) public const string Company = null; // Company that made the Mod. (Set as null if none) - public const string Version = "0.1"; // Version of the Mod. (MUST BE SET) + public const string Version = "1.111"; // Version of the Mod. (MUST BE SET) public const string DownloadLink = null; // Download Link for the Mod. (Set as null if none) } @@ -58,7 +58,7 @@ public static object[] RunXLuaCode(string code,NLua.LuaTable table = null) xlua.DoString(LuaLoader.Instance.luacode4, "XLua Init"); xlua.DoString(LuaLoader.Instance.luacode5, "XLua Init"); - xlua.DoString("NLua = {}", "XLua Init"); + xlua.DoString("nlua = {}", "XLua Init"); xlua.DoString("require('main')", "XLua Init"); if (table != null) @@ -76,7 +76,7 @@ public static object[] RunXLuaCode(string code,NLua.LuaTable table = null) var k = keysa[i]; var v = velsa[i]; - xlua.Global.SetInPath("NLua."+k.ToString(), v); + xlua.Global.SetInPath("nlua." + k.ToString(), v); } } diff --git a/libs/!!util.lua b/libs/!!util.lua index e83f07e..96b3f14 100644 --- a/libs/!!util.lua +++ b/libs/!!util.lua @@ -113,7 +113,7 @@ end function xluatypeof(o) -- The result is the same as typeof, it doesn't seem to make any sense return unpack(Loader.RunXLuaCode([[ - return typeof(NLua.obj) + return typeof(nlua.obj) ]],{ obj = o }))