Import a module if it exists?

BlitzMax Forums/BlitzMax Programming/Import a module if it exists?

jondecker76(Posted 2010) [#1]
Is there a way to check at compile-time if a module exists?

The reason I'm asking, is because I would like to add support for FryPad buttons in my InputSequence module. But, I can't just assume that everyone will have FryPad installed, nor do I feel that I should force it on the user!

any hints would be appreciated!


markcw(Posted 2010) [#2]
No, there's no way to do that.

Either write a non-Frypad version or just tell people it uses Frypad and link to it.


Nate the Great(Posted 2010) [#3]
if there is a way to find the install dir of bmax then you just have to check for fry gui but for a clean solution you should make your own buttons or use a gui that can be integrated into the project legally.


ziggy(Posted 2010) [#4]
Why you don't make the frypad buttons support another additional module?