View Single Post
06/25/14, 01:42 PM   #3
zgrssd
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 280
Originally Posted by farangkao View Post
I have a similar thing with my Addon ,it saved the Item Links ,however since they changed in this Patch, the old Data needs to be cleaned

If you want to make sure, you just need to increase the Version number in your SavedVars call, then it will automatically discard the old data.
I mean "autoamtically" as in:
Code:
IF SAVED_VAR.Version ~= Current.API_VERSION then ...
Having to manually do that will result in not properly getting all cases. I did it via "disable addon in code, the make update with increasesd settings version" for this time.
But I want to directly couple that to the API version. As long as the data is gathered from the proper API version, wich version of the Addon has gathered it does not mater for now. It's a possible conflict between data from different API versions, not a conflict between data from different versions of the Addon.
For that I need some way to get the API version from the client, of course...
  Reply With Quote