diff options
author | David Walter Seikel | 2012-02-22 02:08:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-22 02:08:13 +1000 |
commit | db07db3f6cdec03e9c16142c8e6a9d49801c5ae1 (patch) | |
tree | 25bf48e6b816cbb5a9c1fa202c8b2e465a35feb3 /LuaSL/src/LuaSL_compile.c | |
parent | More commentry about how to make constants.lsl go away, and a little bit of c... (diff) | |
download | SledjHamr-db07db3f6cdec03e9c16142c8e6a9d49801c5ae1.zip SledjHamr-db07db3f6cdec03e9c16142c8e6a9d49801c5ae1.tar.gz SledjHamr-db07db3f6cdec03e9c16142c8e6a9d49801c5ae1.tar.bz2 SledjHamr-db07db3f6cdec03e9c16142c8e6a9d49801c5ae1.tar.xz |
Create constants.lsl at run time from LSL.lua, and use the same infrastructure to generate calls for OpenSim to deal with.
Diffstat (limited to 'LuaSL/src/LuaSL_compile.c')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index a4d54db..873e6c4 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -2119,7 +2119,9 @@ boolean compilerSetup(gameGlobals *game) | |||
2119 | } | 2119 | } |
2120 | 2120 | ||
2121 | // Compile the constants. | 2121 | // Compile the constants. |
2122 | snprintf(buf, sizeof(buf), "%s/src/constants.lsl", PACKAGE_DATA_DIR); | 2122 | snprintf(buf, sizeof(buf), "lua -e 'require(\"LSL\").gimmeLSL()' > %s/constants.lsl", PACKAGE_DATA_DIR); |
2123 | system(buf); | ||
2124 | snprintf(buf, sizeof(buf), "%s/constants.lsl", PACKAGE_DATA_DIR); | ||
2123 | compileLSL(game, NULL, "FAKE_SID", buf, TRUE); | 2125 | compileLSL(game, NULL, "FAKE_SID", buf, TRUE); |
2124 | 2126 | ||
2125 | return TRUE; | 2127 | return TRUE; |