示例#1
0
 void SetupConfig()
 {
     try
     {
         _enabled = ConfigUtility.Get <bool>("addons." + DerivedKey, !DefaultToDisabled);
     } catch (KeyNotFoundException)
     {
         ConfigUtility.Set("addons." + DerivedKey, !DefaultToDisabled);
         _enabled = true;
     }
 }