private bool GetSteamConfig() { try { if (File.Exists(_PluginUserDataPath + "\\..\\CB91DFC9-B977-43BF-8E70-55F46E410FAB\\config.json")) { JObject SteamConfig = JObject.Parse(File.ReadAllText(_PluginUserDataPath + "\\..\\CB91DFC9-B977-43BF-8E70-55F46E410FAB\\config.json")); SteamId = (string)SteamConfig["UserId"]; SteamApiKey = (string)SteamConfig["ApiKey"]; SteamUser = (string)SteamConfig["UserName"]; } else { logger.Error($"SuccessStory - No Steam configuration find"); SuccessStoryDatabase.ListErrors.Add($"Error on SteamAchievements: no Steam configuration and/or API key in settings menu for Steam Library."); return(false); } } catch (Exception ex) { Common.LogError(ex, "SuccessStory", "Error on GetSteamConfig"); } if (SteamId.IsNullOrEmpty() || SteamApiKey.IsNullOrEmpty()) { logger.Error($"SuccessStory - No Steam configuration"); SuccessStoryDatabase.ListErrors.Add($"Error on SteamAchievements: no Steam configuration and/or API key in settings menu for Steam Library."); return(false); } return(true); }