Skip to content

Commit

Permalink
Merge pull request #953 from dlamkins/feat/include-ver
Browse files Browse the repository at this point in the history
Include current version in update check.
  • Loading branch information
dlamkins authored Apr 10, 2024
2 parents 2ec54fe + 721853c commit 61d4335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Blish HUD/GameServices/Overlay/OverlayUpdateHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed class OverlayUpdateHandler : ServiceModule<OverlayService> {

private const string UPDATE_SETTINGS = nameof(OverlayUpdateHandler) + "Configuration";

private const string DEFAULT_CORERELEASE_URL = "https://versions.blishhud.com/all.json";
private const string DEFAULT_CORERELEASE_URL = "https://versions.blishhud.com/all.json?cv={0}";

private CoreVersionManifest[] _availableUpdates = Array.Empty<CoreVersionManifest>();

Expand Down Expand Up @@ -50,7 +50,7 @@ internal OverlayUpdateHandler(OverlayService service) : base(service) { /* NOOP

public override void Load() {
DefineOverlayUpdateSettings(GameService.Settings.RegisterRootSettingCollection(UPDATE_SETTINGS));
BeginLoadReleases(DEFAULT_CORERELEASE_URL);
BeginLoadReleases(string.Format(DEFAULT_CORERELEASE_URL, Program.OverlayVersion.BaseAndPrerelease()));
}

private void DefineOverlayUpdateSettings(SettingCollection settingCollection) {
Expand Down

0 comments on commit 61d4335

Please sign in to comment.