mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09: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:
@ -112,7 +112,27 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
public int OnlineID { get; set; } = -1;
|
public int OnlineID { get; set; } = -1;
|
||||||
|
|
||||||
public string Name => $@"{nameof(APIRuleset)} (ID: {OnlineID})";
|
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 string InstantiationInfo => string.Empty;
|
||||||
|
|
||||||
public Ruleset CreateInstance() => throw new NotImplementedException();
|
public Ruleset CreateInstance() => throw new NotImplementedException();
|
||||||
|
Reference in New Issue
Block a user