Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neptune QTG authored and Neptune QTG committed Nov 5, 2020
1 parent 6525de5 commit 6009346
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file removed .vs/LuaLoader/v16/.suo
Binary file not shown.
Binary file modified LuaLoader/LuaLoader.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions LuaLoader/main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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)
Expand All @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion libs/!!util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}))
Expand Down

0 comments on commit 6009346

Please sign in to comment.