From b564b0b1857a3758a3a56b5fb8da1547a1f55b50 Mon Sep 17 00:00:00 2001 From: routersys Date: Fri, 3 Jul 2026 19:10:39 +0900 Subject: [PATCH] =?UTF-8?q?script=5Fpath=E3=82=92=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=83=BC=E8=B5=B7=E5=8B=95=E5=BC=95=E6=95=B0=E3=81=B8?= =?UTF-8?q?=E6=B8=A1=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript.Runtime/Engine/LuaJitWorker.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LuaScript.Runtime/Engine/LuaJitWorker.cs b/LuaScript.Runtime/Engine/LuaJitWorker.cs index ea458db..1388e83 100644 --- a/LuaScript.Runtime/Engine/LuaJitWorker.cs +++ b/LuaScript.Runtime/Engine/LuaJitWorker.cs @@ -13,6 +13,7 @@ namespace LuaScript.Engine private readonly string _workerScript; private readonly string _shimScript; private readonly string _nativeDir; + private readonly string _scriptPath; private MemoryMappedFile? _mmf; private MemoryMappedViewAccessor? _view; @@ -37,9 +38,10 @@ namespace LuaScript.Engine private byte[] _stringValueBytes = new byte[256]; private byte[] _sceneValueBytes = new byte[256]; - public LuaJitWorker(string nativeDir) + public LuaJitWorker(string nativeDir, string scriptPath) { _nativeDir = nativeDir; + _scriptPath = scriptPath; _luajitPath = Path.Combine(nativeDir, "luajit.exe"); _workerScript = Path.Combine(nativeDir, "worker.lua"); _shimScript = Path.Combine(nativeDir, "shim.lua"); @@ -683,6 +685,7 @@ namespace LuaScript.Engine psi.ArgumentList.Add(doneName); psi.ArgumentList.Add(_shimScript); psi.ArgumentList.Add(stringCapacity.ToString()); + psi.ArgumentList.Add(_scriptPath); _process = Process.Start(psi); if (_process is not null)