diff options
author | David Walter Seikel | 2014-05-13 18:13:20 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-13 18:13:20 +1000 |
commit | 443133b9b612899777a93fe9371b5f5b27a95984 (patch) | |
tree | 8e789d9c6d006b274ab538627770da33941a769e /src/GuiLua/GuiLua.h | |
parent | Add a TCP link between love and extantz, and have love pass on some of the co... (diff) | |
download | SledjHamr-443133b9b612899777a93fe9371b5f5b27a95984.zip SledjHamr-443133b9b612899777a93fe9371b5f5b27a95984.tar.gz SledjHamr-443133b9b612899777a93fe9371b5f5b27a95984.tar.bz2 SledjHamr-443133b9b612899777a93fe9371b5f5b27a95984.tar.xz |
GuiLuaLoad() now returns the GuiLua it loaded, and adds the name. Use that for the purkle load in extantz.
Diffstat (limited to 'src/GuiLua/GuiLua.h')
-rw-r--r-- | src/GuiLua/GuiLua.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/GuiLua/GuiLua.h b/src/GuiLua/GuiLua.h index 3bd2baf..9ee5a1f 100644 --- a/src/GuiLua/GuiLua.h +++ b/src/GuiLua/GuiLua.h | |||
@@ -18,6 +18,7 @@ | |||
18 | typedef struct _GuiLua | 18 | typedef struct _GuiLua |
19 | { | 19 | { |
20 | lua_State *L; | 20 | lua_State *L; |
21 | char *name; // Name of the module. | ||
21 | winFang *us; // Our window, if it exists. | 22 | winFang *us; // Our window, if it exists. |
22 | winFang *parent; // Our parent window, if it exists. | 23 | winFang *parent; // Our parent window, if it exists. |
23 | EPhysics_World *world; // Our world, if it exists. | 24 | EPhysics_World *world; // Our world, if it exists. |
@@ -31,7 +32,7 @@ typedef struct _GuiLua | |||
31 | extern const char *glName; | 32 | extern const char *glName; |
32 | 33 | ||
33 | GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world); | 34 | GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world); |
34 | void GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world); | 35 | GuiLua *GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world); |
35 | void GuiLuaDel(GuiLua *gl); | 36 | void GuiLuaDel(GuiLua *gl); |
36 | 37 | ||
37 | #endif | 38 | #endif |