mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 04:43:37 +08:00
Add temporary browser handling of beatmap difficulty loading
until we have an api method to support this.
This commit is contained in:
parent
3eccface72
commit
b27577e242
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user