From ab39923f87b081469d8f05e1ec26d8eed6f2458c Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 5 Feb 2012 17:37:02 +1000 Subject: Fix up the Lua output filenames and fake SID. --- LuaSL/src/LuaSL_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL/src/LuaSL_compile.c') diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 4821589..72d94b9 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c @@ -2277,7 +2277,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) fprintf(out, "local _bit = require(\"bit\")\n"); fprintf(out, "local _LSL = require(\"LSL\")\n\n"); // TODO - Use the scripts UUID instead of the file name here. - fprintf(out, "local _SID = [=[%s]=]\n\n", compiler.fileName); + fprintf(out, "local _SID = [=[%s.lua.out]=]\n\n", compiler.fileName); outputLeaf(out, OM_LUA, compiler.ast); fprintf(out, "\n\n_LSL.mainLoop(_SID, _defaultState)\n"); // This actually starts the script running. fprintf(out, "\n--// End of generated code.\n\n"); @@ -2301,7 +2301,7 @@ boolean compileLSL(gameGlobals *game, char *script, boolean doConstants) else { // Write the compiled code to a file. - strcat(luaName, ".lua.out"); + strcat(luaName, ".out"); out = fopen(luaName, "w"); if (out) { -- cgit v1.1