mirror of
https://github.com/ppy/osu
synced 2025-01-31 18:32:14 +00:00
Apply NRT
This commit is contained in:
parent
7cdedfb6ca
commit
b0095ee548
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
@ -22,10 +20,10 @@ namespace osu.Game.Updater
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class SimpleUpdateManager : UpdateManager
|
public partial class SimpleUpdateManager : UpdateManager
|
||||||
{
|
{
|
||||||
private string version;
|
private string version = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private GameHost host { get; set; }
|
private GameHost host { get; set; } = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuGameBase game)
|
private void load(OsuGameBase game)
|
||||||
@ -76,7 +74,7 @@ namespace osu.Game.Updater
|
|||||||
|
|
||||||
private string getBestUrl(GitHubRelease release)
|
private string getBestUrl(GitHubRelease release)
|
||||||
{
|
{
|
||||||
GitHubAsset bestAsset = null;
|
GitHubAsset? bestAsset = null;
|
||||||
|
|
||||||
switch (RuntimeInfo.OS)
|
switch (RuntimeInfo.OS)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user