From 443133b9b612899777a93fe9371b5f5b27a95984 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 13 May 2014 18:13:20 +1000 Subject: GuiLuaLoad() now returns the GuiLua it loaded, and adds the name. Use that for the purkle load in extantz. --- src/GuiLua/GuiLua.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/GuiLua/GuiLua.h') 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 @@ typedef struct _GuiLua { lua_State *L; + char *name; // Name of the module. winFang *us; // Our window, if it exists. winFang *parent; // Our parent window, if it exists. EPhysics_World *world; // Our world, if it exists. @@ -31,7 +32,7 @@ typedef struct _GuiLua extern const char *glName; GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world); -void GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world); +GuiLua *GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world); void GuiLuaDel(GuiLua *gl); #endif -- cgit v1.1