Incbin

BlitzMax Forums/BlitzMax Programming/Incbin

GfK(Posted 2008) [#1]
Is there any way (or possibility it could be made to) include whole folders/wildcards?

Its a right pain in the wossnames having to do it manually when you have hundreds and hundreds of files.


Kurator(Posted 2008) [#2]
i think this is the perfect tool for you: http://www.blitzbasic.com/Community/posts.php?topic=80402


MGE(Posted 2008) [#3]
"hundreds and hundreds of files" ? ?

wow....


Volker(Posted 2008) [#4]
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



GfK(Posted 2008) [#5]
"hundreds and hundreds of files" ? ?

wow....
What's wrong with that? Games require assets. Lots of them.
What about a small prg which scans the directories
Thought about that. Might end up doing it.