Skip to content

Commit

Permalink
Actually download from the mirrors instead of GameBanana
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 authored Oct 21, 2024
1 parent d1b41c9 commit 5b3ee7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
Manage Installed Mods: Display a recap of installed updates when they are done
Bugfix: Made downloads from mirrors actually download from the mirrors instead of GameBanana
2 changes: 1 addition & 1 deletion sharp/CmdInstallMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public override IEnumerator Run(string root, string url, string mirrorPreference
yield return Status($"Downloading mod from {mirroredUrl}", false, "download", false);
ea = new Exception[1];
using (FileStream zipStream = File.Open(from, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite | FileShare.Delete))
yield return Try(Download(url, 0, zipStream), ea);
yield return Try(Download(mirroredUrl, 0, zipStream), ea);

if (ea[0] != null) {
yield return Status($"Downloading from {mirroredUrl} failed, trying another mirror.\n" + ea[0], false, "download", false);
Expand Down

0 comments on commit 5b3ee7c

Please sign in to comment.