Searching in incbin?
BlitzMax Forums/BlitzMax Programming/Searching in incbin?
| ||
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? |
| ||
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. |
| ||
ah well, it would be neat if it was possible tho... ^^ |
| ||
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. |
| ||
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! |
| ||
Ok... Another question about Incbin.. Can I incbin ttf fonts and load them with LoadGuiFont? |
| ||
Can I incbin ttf fonts and load them with LoadGuiFont? Unlikely. Certainly not in a cross-platform friendly kind of way... |