From b27577e242c6d4a66ca201c05006d370b0fac4e9 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 17 Jan 2018 19:37:20 +0900 Subject: [PATCH] Add temporary browser handling of beatmap difficulty loading until we have an api method to support this. --- osu.Game/Graphics/Containers/LinkFlowContainer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Graphics/Containers/LinkFlowContainer.cs b/osu.Game/Graphics/Containers/LinkFlowContainer.cs index 3c81b92168..ea11f065b4 100644 --- a/osu.Game/Graphics/Containers/LinkFlowContainer.cs +++ b/osu.Game/Graphics/Containers/LinkFlowContainer.cs @@ -60,7 +60,9 @@ namespace osu.Game.Graphics.Containers switch (linkType) { case LinkAction.OpenBeatmap: - // todo: implement this when overlay.ShowBeatmap(id) exists + // todo: replace this with overlay.ShowBeatmap(id) once an appropriate API call is implemented. + if (int.TryParse(linkArgument, out int beatmapId)) + Process.Start($"https://osu.ppy.sh/b/{beatmapId}"); break; case LinkAction.OpenBeatmapSet: if (int.TryParse(linkArgument, out int setId))