[AD] Contibution: file_select_ex() |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
This is a very little piece of code that adds a new function, file_select_ex(). The difference between this and file_select() is that this one takes 2 additional parameters, a callback function and a parameter for the user. What it does is to call the callback before adding any file (or directory) into the file list and if the return of callback is true, it adds the file, otherwise it ignores it. Using this function, it's possible to exclude some unwanted files (for example read only files). The attached zip contains all the code and a txt file which describes everything. Pavlos PS. I made this on top of WIP 3.9.22
Attachment:
fselex.zip
Description: Zip compressed data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |