Alright, so after doing the luajit thing I got a luajit decompiler and tried it out.
This is the original file:
Code: Select all
function love.load()
love.graphics.setBackgroundColor(222, 222, 222)
end
function love.update(dt)
end
function love.draw()
end
This is the code generated by this
https://github.com/bobsayshilol/luajit-decomp/wiki decompiler (it was the first one I found on Google):
Code: Select all
function someFunc0()
love.graphics.setBackgroundColor( 222 , 222 , 222 )
return
end
function someFunc1()
return
end
function someFunc2()
return
end
function someFunc3()
local randomFunction0 = function() end -- starts at test.lua:0
love.load = randomFunction0
local randomFunction1 = function() end -- starts at test.lua:0
love.update = randomFunction1
local randomFunction2 = function() end -- starts at test.lua:0
love.draw = randomFunction2
return
end
I have some new questions:
1) This pretty much offers no protection as far as I'm concerned. Is the luajit method the only and best one available?
2) Assuming the answer to 1 is true, what are other techniques that can be used to make the steps to achieving a file like the one that that decompiler used harder? Now, I imagine that at this point describing things in terms of steps isn't possible anymore, so I'm happy with high level descriptions of the various techniques used.