Write data to incbin?

BlitzMax Forums/BlitzMax Programming/Write data to incbin?

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.

There is a command, I forget what it's called, to get the address pointer of the start of the incbin'd data. I don't see why you couldn't then use that to modify the data, it should work at runtime. You'd just want to be sure that the CPU cache is flushed before reading it back, I've no idea if that is handled automatically or not.

It's a pity that incbin'ing data which then needs to be unpacked in some way, like an image, requires more memory - memory for the original file and memory for the unpacked version (e.g. image data).