mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Change luaL_loadbuffer chunkname with prefixes.
This commit is contained in:
@@ -136,7 +136,7 @@ extern "C" int luaopen_love_event(lua_State *L)
|
||||
|
||||
int ret = luax_register_module(L, w);
|
||||
|
||||
if (luaL_loadbuffer(L, (const char *)event_lua, sizeof(event_lua), "wrap_Event.lua") == 0)
|
||||
if (luaL_loadbuffer(L, (const char *)event_lua, sizeof(event_lua), "=[love \"wrap_Event.lua\"]") == 0)
|
||||
lua_call(L, 0, 0);
|
||||
else
|
||||
lua_error(L);
|
||||
|
||||
Reference in New Issue
Block a user