Properly export love modules to lua, package.loaded is correct now

This commit is contained in:
Bart van Strien
2012-01-07 14:08:41 +01:00
parent 870973197c
commit e0b420c988
4 changed files with 9 additions and 10 deletions
@@ -1300,12 +1300,12 @@ namespace opengl
w.functions = functions;
w.types = types;
luax_register_module(L, w);
int n = luax_register_module(L, w);
if (luaL_loadbuffer(L, (const char *)graphics_lua, sizeof(graphics_lua), "graphics.lua") == 0)
lua_call(L, 0, 0);
return 0;
return n;
}
} // opengl