aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-05 14:17:33 +1000
committerDavid Walter Seikel2012-02-05 14:17:33 +1000
commitb2e7bb01e3fd34b259b723f362bd9246989fd8dc (patch)
treec4273795c8459b89198c603ccf05c41a49250542 /LuaSL
parentLoop through the compiled scripts and run them using luaproc + LuaJIT. (diff)
downloadSledjHamr-b2e7bb01e3fd34b259b723f362bd9246989fd8dc.zip
SledjHamr-b2e7bb01e3fd34b259b723f362bd9246989fd8dc.tar.gz
SledjHamr-b2e7bb01e3fd34b259b723f362bd9246989fd8dc.tar.bz2
SledjHamr-b2e7bb01e3fd34b259b723f362bd9246989fd8dc.tar.xz
Code formatting.
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_main.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 24626fb..f233031 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -77,15 +77,17 @@ static void dirList_compile(const char *name, const char *path, void *data)
77 77
78 if (ext) 78 if (ext)
79 { 79 {
80 if ((!LUASL_DEBUG) || (0 == scriptCount)) 80 if ((!LUASL_DEBUG) || (0 == scriptCount))
81 if (0 == strcmp(ext, ".lsl"))
82 { 81 {
83 scriptCount++; 82 if (0 == strcmp(ext, ".lsl"))
84 snprintf(buf, sizeof(buf), "%s/%s", path, name); 83 {
85 if (compileLSL(game, buf, FALSE)) 84 scriptCount++;
86 PD("The compile of %s worked,", buf); 85 snprintf(buf, sizeof(buf), "%s/%s", path, name);
87 else 86 if (compileLSL(game, buf, FALSE))
88 PE("The compile of %s failed!", buf); 87 PD("The compile of %s worked,", buf);
88 else
89 PE("The compile of %s failed!", buf);
90 }
89 } 91 }
90 } 92 }
91} 93}