Skip to content

Commit

Permalink
Use a constant for lazer variables
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 3, 2019
1 parent d8f45f7 commit 115a75e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion osu.Desktop/Overlays/VersionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void load(OsuColour colours, ChangelogOverlay changelog)

Activated = delegate
{
changelog.ShowBuild("lazer", version);
changelog.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, version);
return true;
};
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Tests/Visual/Online/TestSceneChangelogOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected override void LoadComplete()
{
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
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Online/API/Requests/Responses/APIUpdateStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public ColourInfo Colour
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":
Expand Down
2 changes: 2 additions & 0 deletions osu.Game/OsuGameBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion osu.Game/Overlays/Settings/SettingsFooter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected override bool OnClick(ClickEvent e)
{
if (game.IsDeployedBuild)
{
changelog?.ShowBuild("lazer", game.Version);
changelog?.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, game.Version);
}

return true;
Expand Down

0 comments on commit 115a75e

Please sign in to comment.