// Token: 0x060020AF RID: 8367 RVA: 0x00099C6C File Offset: 0x00097E6C
 public string GetCurrentValue()
 {
     BaseSettingsControl.SettingSource settingSource = this.settingSource;
     if (settingSource != BaseSettingsControl.SettingSource.ConVar)
     {
         if (settingSource != BaseSettingsControl.SettingSource.UserProfilePref)
         {
             return("");
         }
         UserProfile currentUserProfile = this.GetCurrentUserProfile();
         return(((currentUserProfile != null) ? currentUserProfile.GetSaveFieldString(this.settingName) : null) ?? "");
     }
     else
     {
         BaseConVar conVar = this.GetConVar();
         if (conVar == null)
         {
             return(null);
         }
         return(conVar.GetString());
     }
 }
 // Token: 0x060020AD RID: 8365 RVA: 0x00099ACC File Offset: 0x00097CCC
 private void SubmitSettingInternal(string newValue)
 {
     if (this.originalValue == null)
     {
         this.originalValue = this.GetCurrentValue();
     }
     if (this.originalValue == newValue)
     {
         this.originalValue = null;
     }
     BaseSettingsControl.SettingSource settingSource = this.settingSource;
     if (settingSource != BaseSettingsControl.SettingSource.ConVar)
     {
         if (settingSource == BaseSettingsControl.SettingSource.UserProfilePref)
         {
             UserProfile currentUserProfile = this.GetCurrentUserProfile();
             if (currentUserProfile != null)
             {
                 currentUserProfile.SetSaveFieldString(this.settingName, newValue);
             }
             UserProfile currentUserProfile2 = this.GetCurrentUserProfile();
             if (currentUserProfile2 != null)
             {
                 currentUserProfile2.RequestSave(false);
             }
         }
     }
     else
     {
         BaseConVar conVar = this.GetConVar();
         if (conVar != null)
         {
             conVar.SetString(newValue);
         }
     }
     RoR2Application.onNextUpdate += this.UpdateControls;
 }