/// <summary> /// Attempts to loads the current Xbox Live configuration if present. /// </summary> /// <returns>The configuration declared in the configuration file, or null if it does not exist or is invalid.</returns> internal XboxLiveAppConfiguration TryLoad() { if (!File.Exists(this.configFilePath)) { return(null); } try { return(XboxLiveAppConfiguration.Load(this.configFilePath)); } catch (Exception) { return(null); } }
/// <summary> /// Attempts to loads the current Xbox Live configuration if present. /// </summary> /// <returns>The configuration declared in the configuration file, or null if it does not exist or is invalid.</returns> internal XboxLiveAppConfiguration TryLoad() { if (!File.Exists(this.configFilePath)) { return(null); } try { return(XboxLiveAppConfiguration.Load(this.configFilePath)); } catch (Exception ex) { Debug.LogWarning(string.Format("Xbox Live config file exists but failed to load: {0}", ex.Message)); return(null); } }