diff options
author | David Walter Seikel | 2014-05-08 09:05:01 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-08 09:05:01 +1000 |
commit | b4e8ab19c4f232c68ba511534880d22ef35a04b0 (patch) | |
tree | a0ed2d296e20e3ec18187a7e2ad9c75b320982c9 /src/GuiLua/GuiLua.c | |
parent | Setup all the Lua paths in a central place. (diff) | |
download | SledjHamr-b4e8ab19c4f232c68ba511534880d22ef35a04b0.zip SledjHamr-b4e8ab19c4f232c68ba511534880d22ef35a04b0.tar.gz SledjHamr-b4e8ab19c4f232c68ba511534880d22ef35a04b0.tar.bz2 SledjHamr-b4e8ab19c4f232c68ba511534880d22ef35a04b0.tar.xz |
A new function to load GuiLua skang modules.
Diffstat (limited to 'src/GuiLua/GuiLua.c')
-rw-r--r-- | src/GuiLua/GuiLua.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c index dbd3f95..55037e0 100644 --- a/src/GuiLua/GuiLua.c +++ b/src/GuiLua/GuiLua.c | |||
@@ -433,6 +433,14 @@ GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent) | |||
433 | return result; | 433 | return result; |
434 | } | 434 | } |
435 | 435 | ||
436 | void GuiLuaLoad(char *module, winFang *parent) | ||
437 | { | ||
438 | char *args[] = {"GuiLUa", "-l", ""}; | ||
439 | |||
440 | args[2] = module; | ||
441 | GuiLuaDo(3, args, parent); | ||
442 | } | ||
443 | |||
436 | void GuiLuaDel(GuiLua *gl) | 444 | void GuiLuaDel(GuiLua *gl) |
437 | { | 445 | { |
438 | if (gl) | 446 | if (gl) |