mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:42:56 +08:00
Fix beatmap overlay leaderboards and links not working
Completely aware that this isn't how it should be done, but would like to get this out in a hotfix release today. Maybe changes opinions on https://github.com/ppy/osu/pull/16890 structure?
This commit is contained in:
parent
13b6cfb5ed
commit
3d5ed24e20
@ -112,7 +112,27 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public int OnlineID { get; set; } = -1;
|
||||
|
||||
public string Name => $@"{nameof(APIRuleset)} (ID: {OnlineID})";
|
||||
public string ShortName => nameof(APIRuleset);
|
||||
|
||||
public string ShortName
|
||||
{
|
||||
get
|
||||
{
|
||||
// TODO: this should really not exist.
|
||||
switch (OnlineID)
|
||||
{
|
||||
case 0: return "osu";
|
||||
|
||||
case 1: return "taiko";
|
||||
|
||||
case 2: return "catch";
|
||||
|
||||
case 3: return "fruits";
|
||||
|
||||
default: throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string InstantiationInfo => string.Empty;
|
||||
|
||||
public Ruleset CreateInstance() => throw new NotImplementedException();
|
||||
|
Loading…
Reference in New Issue
Block a user