Skip to content

Commit

Permalink
fix initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Nov 29, 2023
1 parent a9dc7fc commit d8bece9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions M64RPFW.ViewModels/Scripting/LuaEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ public LuaEnvironment(string path, ILuaWindowService luaWindowService, ILuaInter
using (_luaLock.WriteLock())
{
_lua = new Lua();
LuaLoadDotnetClasses();
LuaRegisterTaggedFunctions();
LoadDotnetClasses();
}
}

Expand Down Expand Up @@ -149,7 +149,7 @@ private void LuaRegisterTaggedFunctions()
/// <summary>
/// Loads SkiaSharp's API into Lua.
/// </summary>
private void LoadDotnetClasses()
private void LuaLoadDotnetClasses()
{
const string code =
"""
Expand Down

0 comments on commit d8bece9

Please sign in to comment.