mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Change auto.lua to create plaintext instead of hex code.
This commit is contained in:
@@ -305,7 +305,7 @@ namespace audio
|
||||
|
||||
luax_register_module(L, w);
|
||||
|
||||
if (luaL_loadbuffer(L, (const char *)audio_lua, sizeof(audio_lua), "audio.lua") == 0)
|
||||
if (luaL_loadbuffer(L, audio_lua.c_str(), audio_lua.size(), "audio.lua") == 0)
|
||||
lua_call(L, 0, 0);
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -1050,7 +1050,7 @@ namespace opengl
|
||||
|
||||
luax_register_module(L, w);
|
||||
|
||||
if (luaL_loadbuffer(L, (const char *)graphics_lua, sizeof(graphics_lua), "graphics.lua") == 0)
|
||||
if (luaL_loadbuffer(L, graphics_lua.c_str(), graphics_lua.size(), "graphics.lua") == 0)
|
||||
lua_call(L, 0, 0);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user