aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LSL.lua
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-12 00:06:44 +1000
committerDavid Walter Seikel2012-02-12 00:06:44 +1000
commit13c0366d3865bfd8830c5851c66ec834c2e83aba (patch)
tree7636e415b032e13fe131d2e880a0f047cb61ac9a /LuaSL/src/LSL.lua
parentMeasure compile speed the right way. lol (diff)
downloadSledjHamr-13c0366d3865bfd8830c5851c66ec834c2e83aba.zip
SledjHamr-13c0366d3865bfd8830c5851c66ec834c2e83aba.tar.gz
SledjHamr-13c0366d3865bfd8830c5851c66ec834c2e83aba.tar.bz2
SledjHamr-13c0366d3865bfd8830c5851c66ec834c2e83aba.tar.xz
SID is now full path to the LSL file. Still need to change it to the UUID of the running script.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LSL.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/LuaSL/src/LSL.lua b/LuaSL/src/LSL.lua
index c2e4d1c..7a47a69 100644
--- a/LuaSL/src/LSL.lua
+++ b/LuaSL/src/LSL.lua
@@ -567,12 +567,11 @@ function LSL.stateChange(x)
567 end 567 end
568end; 568end;
569 569
570function LSL.mainLoop(ourSID, x) 570function LSL.mainLoop(sid, x)
571 local sid = ourSID .. ".events"
572 local status, errorMsg = luaproc.newchannel(sid) 571 local status, errorMsg = luaproc.newchannel(sid)
573 local result 572 local result
574 573
575 SID = ourSID 574 SID = sid
576 575
577 if not status then 576 if not status then
578 msg("Can't open the luaproc channel " .. sid .. " ERROR MESSAGE: " .. errorMsg) 577 msg("Can't open the luaproc channel " .. sid .. " ERROR MESSAGE: " .. errorMsg)