Change luaL_loadbuffer chunkname with prefixes.

This commit is contained in:
Miku AuahDark
2021-12-12 01:26:20 +08:00
parent 7e271fc53e
commit fb815edc28
15 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ int luaopen_video(lua_State *L)
{
int ret = luax_register_type(L, &Video::type, functions, nullptr);
luaL_loadbuffer(L, video_lua, sizeof(video_lua), "Video.lua");
luaL_loadbuffer(L, video_lua, sizeof(video_lua), "=[love \"Video.lua\"]");
luax_gettypemetatable(L, Video::type);
lua_call(L, 1, 0);