WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Classic - AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=179)
-   -   PSA: TBC got its own project id (https://www.wowinterface.com/forums/showthread.php?t=58690)

Dridzt 04-12-21 07:46 PM

PSA: TBC got its own project id
 
As of build 38285 BC Classic now has its own WOW_PROJECT_ID of 5 so addons that have conditional code for the different client flavors can simplify their checks.

Code:

WOW_PROJECT_MAINLINE = 1
WOW_PROJECT_CLASSIC = 2
WOW_PROJECT_BURNING_CRUSADE_CLASSIC = 5

Checking the global WOW_PROJECT_ID against one of the above is the simplest way to detect the client.


All times are GMT -6. The time now is 08:08 PM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI