I know how to do stuff with Lua states and what not but what i don't understand is how you would distribute the final program with a seperate lua file because say you have a .exe and a lua file in the same directory how would I make it so that it is all one executable like how Löve 2d uses
copy /b
to append the lua file to the Löve 2d interpreter so it can be distributed. could someone possibly explain how this works.
many thanks Blazing
.luafile from the executable?copy /bjust merged the two files by stuffing one file on the end of the other file I think. So how to use that is a question of how to find the other file at the end of your file. I don't know if there's a specific way to do it but you could always just open yourself and read backwards from the end until you find your header/marker and then load it.