I launch LUA from c++ code using
BP L=GetLuaState();
lua_pushobject(L,fw);
lua_setglobal(L,"fw");
lua_pop(L,1);
Problem is, i have no clue on how to protect the scripts folder and make it work.
I can protect the data folder and it works ok with something like this:
SetZipStreamPassword("data.pak","pass");
RegisterAbstractPath("/data");
I been trying to do the same with scripts folder in the same data.pak, or in scripts.pak with RegisterAbstractPath("/scripts"), but it simply won't work.
Error i get is "can't open script/class". So far i wasn't unable to solve this.