Change auto.lua to create plaintext instead of hex code.

This commit is contained in:
vrld
2011-02-20 23:34:48 +01:00
parent 8581efae07
commit 08259a4a0e
7 changed files with 17 additions and 8054 deletions
+1 -1
View File
@@ -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;