Yeah that's the only way to really get it as far as I know. I've been using that method to make some of my plugins possible.

3 years later