Searching in incbin?

BlitzMax Forums/BlitzMax Programming/Searching in incbin?

Crovean(Posted 2010) [#1]
Is it possible to search for multiple files with the extension .ini in the incbin and put them in a listbox? I want to incbin some language definition files, and when entering options my app will add all files in "incbin::language/.." to a listbox..

Possible?


Brucey(Posted 2010) [#2]
Incbins are hard-coded in your source, so you would be as well to hard-code a list of matching display names for your listbox.


Crovean(Posted 2010) [#3]
ah well, it would be neat if it was possible tho... ^^


TaskMaster(Posted 2010) [#4]
You cannot edit an ini file that is incbin'd, unless you save it to the hard disk at that point. It is not possible to modify an incbin'd file and put it back in the exe.


Arowx(Posted 2010) [#5]
If you give the incbin files names like lang1.txt lang2.txt ect then you could just use a batch file to move and rename the relevant files at build time?

I think there are ways to include pre-process build steps in your build process, but you would need to check out Bruceys modules and I think LUA for that...

Hope that helps!


Crovean(Posted 2010) [#6]
Ok... Another question about Incbin.. Can I incbin ttf fonts and load them with LoadGuiFont?


Brucey(Posted 2010) [#7]
Can I incbin ttf fonts and load them with LoadGuiFont?

Unlikely.
Certainly not in a cross-platform friendly kind of way...