Incbin

BlitzMax Forums/BlitzMax Programming/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.

What about a small prg which scans the directories
and creates a bmx-file which contains the "incbin"-commands?
You later just need to include it.
Isn't bmx the same as a textfile?

Pseudocode:
Type TIncbintoBMX
	filelist:TList
	Method Adddirectory(dir:String)
		' check for all files in this dir
		' Put them in a list 	
	End Method
	'
	Method CreateBMXfile(file:String)
		' go through filelist
		' writeline bmxfile,"incbin://"+filename	
	End Method
end type