Universal binaries and incbin - little problem!

Miscellaneous Forums/MacOS X Discussion/Universal binaries and incbin - little problem!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've not needed to do this with BlitzMax yet, but I did a similar thing in Blitz3D.

I loaded a media file by calling my own loading function ie:

_LoadImage("gfx/background.jpg")

my _loadimage function then checked if gfx/background.jpg was inside my binary data file, and if it was, extracted the file, loaded it, and deleted the extracted file.

If it wasnt in the binary file, it was compressed and added to the binary system.

Then, as I was developing, the binary file just made itself :)