chore: Pass Lua VM from editor when decoding runtime File (#11458) f57124001d

The C++ runtime requires a ScriptingVM and lua_State to run scripts. Previously when a runtime File was built, we would always instance a ScriptingVM and lua_State. At runtime, this is required, however, when building the runtime in the editor, this resulted in additional objects being created that weren't needed. This PR passes the lua_State into File::import so that the file will only create the ScriptingVM once and either use the passed in lua_State or instance a new one if none is passed.
This commit is contained in:
philter
2026-01-15 20:37:31 +00:00
parent c3be46500b
commit 9c299cd72a
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
f3a89390cb428a5ea841d21de91f9cb2adc312df
f57124001d4ee388c32a3ec0cd08e292fafc268d