API RegisterForSave
From Wowpedia
This function is protected.
|
Registers a global with the specified name to be saved.
RegisterForSave("variable")
Arguments
- variable
- String - The name of the variable to save.
Details
- This function is only available to secure code, and will save the variable in the WTF/Account/ACCOUNTNAME/SavedVariables.lua file.
- Addons must use the SavedVariables and SavedVariablesPerCharacter .toc fields to specify names of variables they want to save.