mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Changed how scripts are embedded.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user