WoWInterface - View Single Post - How are you guys posting Legion addons on curse?
View Single Post
05-20-16, 01:51 AM   #9
An Aku'mai Servant
Simca's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2012
Posts: 33
Originally Posted by Nimhfree View Post
I just write my addon with logic inside that determines whether it is running a version that changes API usage, etc. so the same addon can be used in live and beta.
I also use this approach.

It's safer and as long as you consistently use the same detection variable throughout (I use a local 'isLegion' that is limited to addon-scope), it is easy to update everything once 7.0 is out to no longer support 6.x clients (just pull out all the code from those 'if' statements and trash the 'else' statements).

Everybody wins.
Assistant admin for MMO-Champion
WoW database file expert - ask me anything