diff --git a/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs b/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs index 5f89725..7efb56d 100644 --- a/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs +++ b/AM2RLauncher/AM2RLauncher/CrossPlatformOperations.cs @@ -85,8 +85,8 @@ namespace AM2RLauncher { return new List { - "https://github.com/Miepee/AM2R-Autopatcher-Mac.git", - "https://github.com/Miepee/AM2R-Autopatcher-Mac.git" //TODO: make mac official at some point:tm:, put this on gitlab + "https://github.com/Miepee/AM2R-Autopatcher-Mac.git" + //TODO: make mac official at some point:tm:, put this on gitlab }; } diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs index 82d784b..7cc9aac 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.UI.cs @@ -229,12 +229,15 @@ namespace AM2RLauncher // Create mirror list // We do this as a list for 1) make this dynamic and 2) make ETO happy - mirrorDescriptionList = new List - { - new ListItem { Key = mirrorList[0], Text = Language.Text.MirrorGithubText }, - new ListItem { Key = mirrorList[1], Text = Language.Text.MirrorGitlabText} - }; - + mirrorDescriptionList = new List(); + // Add each entry dynamically instead of harcoding it to two. If we have neither a github or gitlab mirror, we use the mirror itself as text + foreach (var mirror in mirrorList) + { + string text = mirror; + if (text.Contains("github.com")) text = Language.Text.MirrorGithubText; + else if (text.Contains("gitlab.com")) text = Language.Text.MirrorGitlabText; + mirrorDescriptionList.Add(new ListItem() { Key = mirror, Text = text }); + } #endregion Icon = new Icon(1f, am2rIcon);