summaryrefslogtreecommitdiff
path: root/lib/genloadlib.sh
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-11-27 07:27:37 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-11-27 07:27:37 +0100
commit2158bd3e375e1185bd180219023a443a1a154957 (patch)
treed2010a579883175574063e2d3c838330b55bbfdd /lib/genloadlib.sh
parent070402f728067ed415b1e02d17823508b4dc2bcd (diff)
Adding SetFakeName system to help with the built-ins luas loads.
Diffstat (limited to 'lib/genloadlib.sh')
-rwxr-xr-xlib/genloadlib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/genloadlib.sh b/lib/genloadlib.sh
index c7231b1..c9b2c19 100755
--- a/lib/genloadlib.sh
+++ b/lib/genloadlib.sh
@@ -14,6 +14,7 @@ echo 'void LoadLuaLibs(Lua * L) {'
ls *.lua | while read f ; do
b=${f%%.*}
echo " Buffer ${b}_buff;"
+ echo " ${b}_buff.SetFakeName(\"@$b.lua\");"
echo " ${b}_buff.write($b, size_$b);"
echo " L->load(&${b}_buff);"
echo