[solved]Lua question
Posted: Mon Dec 19, 2011 12:31 pm
how is it possible to load bytecode and lua files from c++ using irrlicht interface?
I want to use the
function
this is usefull because it should read a lua program directly from a ram memory buffer, but I'm stuck on how to get the C string from the "helloworld.lua" file wich is putted into and compressed archive ("script.zip") wich is opened by irrlicht. So my problem is to get the C string from a file using irrlicht. I tried something but seems that some characters are changed during loading.
I want to use the
Code: Select all
lua_load
this is usefull because it should read a lua program directly from a ram memory buffer, but I'm stuck on how to get the C string from the "helloworld.lua" file wich is putted into and compressed archive ("script.zip") wich is opened by irrlicht. So my problem is to get the C string from a file using irrlicht. I tried something but seems that some characters are changed during loading.