Changed how scripts are embedded.

This commit is contained in:
rude
2009-11-08 17:00:53 +01:00
parent 9b367c5dbd
commit 0df1aeb0f3
4 changed files with 1236 additions and 905 deletions
@@ -22,6 +22,8 @@
#include <image/ImageData.h>
#include <scripts/graphics.lua.h>
namespace love
{
namespace graphics
@@ -890,11 +892,12 @@ namespace opengl
luax_register_module(L, w);
# include <scripts/graphics.lua.h>
if (luaL_loadbuffer(L, graphics_lua, sizeof(graphics_lua), "graphics.lua") == 0)
lua_call(L, 0, 0);
return 0;
}
} // opengl
} // graphics
} // love
} // love