1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 00:43:01 +08:00

Add temporary browser handling of beatmap difficulty loading

until we have an api method to support this.
This commit is contained in:
Dean Herbert 2018-01-17 19:37:20 +09:00
parent 3eccface72
commit b27577e242

View File

@ -60,7 +60,9 @@ namespace osu.Game.Graphics.Containers
switch (linkType) switch (linkType)
{ {
case LinkAction.OpenBeatmap: 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; break;
case LinkAction.OpenBeatmapSet: case LinkAction.OpenBeatmapSet:
if (int.TryParse(linkArgument, out int setId)) if (int.TryParse(linkArgument, out int setId))