Use a constant for lazer variables

This commit is contained in:
Dean Herbert 2019-06-03 13:16:05 +09:00
parent d8f45f7299
commit 115a75e4c6
5 changed files with 6 additions and 4 deletions

View File

@ -120,7 +120,7 @@ namespace osu.Desktop.Overlays
Activated = delegate
{
changelog.ShowBuild("lazer", version);
changelog.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, version);
return true;
};
}

View File

@ -42,7 +42,7 @@ namespace osu.Game.Tests.Visual.Online
{
Version = "2018.712.0",
DisplayVersion = "2018.712.0",
UpdateStream = new APIUpdateStream { Name = "lazer" },
UpdateStream = new APIUpdateStream { Name = OsuGameBase.CLIENT_STREAM_NAME },
ChangelogEntries = new List<APIChangelogEntry>
{
new APIChangelogEntry

View File

@ -45,7 +45,7 @@ namespace osu.Game.Online.API.Requests.Responses
case "cuttingedge":
return new Color4(238, 170, 0, 255);
case "lazer":
case OsuGameBase.CLIENT_STREAM_NAME:
return new Color4(237, 18, 33, 255);
case "web":

View File

@ -44,6 +44,8 @@ namespace osu.Game
/// </summary>
public class OsuGameBase : Framework.Game, ICanAcceptFiles
{
public const string CLIENT_STREAM_NAME = "lazer";
protected OsuConfigManager LocalConfig;
protected BeatmapManager BeatmapManager;

View File

@ -80,7 +80,7 @@ namespace osu.Game.Overlays.Settings
{
if (game.IsDeployedBuild)
{
changelog?.ShowBuild("lazer", game.Version);
changelog?.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, game.Version);
}
return true;