Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

MCom.safeLoad

From WoWWiki

Jump to: navigation, search
 

This article is a part of the documentation of the MCom function library

 --[[ 
   safeLoad ( configVar )
     Used to ensure that when variables are loaded into a table based variable, that none of the defaults
     are niled out.
     Call this after you have setup the defaults for your table, but before VARIABLES_LOADED occurs.
     When the variables are loaded, anything that is missing will be filled in with the defaults.

   Args:
     Required:
       (string) configVar -  The name of the config variable, this should have been registered for save by you, and must be a table with a simple
                             variable name.  IE no .'s or []'s
 ]]--
Rate this article:
Share this article: