public static void Initialize(SocialMode?mode = null) { if (!mode.HasValue) { mode = new SocialMode?(SocialMode.None); } SocialAPI.Mode = mode.Value; SocialAPI._modules = new List <ISocialModule>(); SocialMode mode2 = SocialAPI.Mode; if (mode2 == SocialMode.Steam) { SocialAPI.LoadSteam(); } foreach (ISocialModule current in SocialAPI._modules) { current.Initialize(); } }
public static void Initialize(SocialMode?mode = null) { if (!mode.HasValue) { mode = new SocialMode?(SocialMode.None); mode = new SocialMode?(SocialMode.Steam); } SocialAPI._mode = mode.Value; SocialAPI._modules = new List <ISocialModule>(); if (SocialAPI.Mode == SocialMode.Steam) { SocialAPI.LoadSteam(); } foreach (var module in SocialAPI._modules) { module.Initialize(); } }
public static void Initialize(SocialMode?mode = null) { if (!mode.HasValue) { mode = new SocialMode?(SocialMode.None); if (Program.LaunchParameters.ContainsKey("-steam")) { mode = new SocialMode?(SocialMode.Steam); } } SocialAPI._mode = mode.Value; SocialAPI._modules = new List <ISocialModule>(); if (SocialAPI.Mode == SocialMode.Steam) { SocialAPI.LoadSteam(); } foreach (ISocialModule module in SocialAPI._modules) { module.Initialize(); } }