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.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/GuiLua/GuiLua.c') diff --git a/src/GuiLua/GuiLua.c b/src/GuiLua/GuiLua.c index c845ff1..d960da9 100644 --- a/src/GuiLua/GuiLua.c +++ b/src/GuiLua/GuiLua.c @@ -429,12 +429,15 @@ GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent, EPhysics_World *world) return result; } -void GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world) +GuiLua *GuiLuaLoad(char *module, winFang *parent, EPhysics_World *world) { + GuiLua *result; char *args[] = {"GuiLUa", "-l", ""}; args[2] = module; - GuiLuaDo(3, args, parent, world); + result = GuiLuaDo(3, args, parent, world); + result->name = module; + return result; } void GuiLuaDel(GuiLua *gl) -- cgit v1.1