May 26, 2007
Op Sun, 20 May 2007 17:41:28 +0200
schreef Henning Hasemann <hhasemann@web.de>:

> I'm about to build a little SDL-application which should run
> completely from a single binary.
> So my idea was to simple append a .zip-file with all other needed
> files (images etc..) to it and extract it in RAM with std.zip.
> 
> The big problem is: How does the program know where in the binary the zip-file begins?

Check the size of the binary at runtime and subtract the size of the .zip file from it?   :-)

(That's how many virusses did it, back in the days of DOS...)

-- 
Jan Claeys
1 2
Next ›   Last »