1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Use ruleset.ShortName instead of hardcoded names.

This commit is contained in:
Lucas A 2019-05-16 18:36:54 +02:00
parent d4013ae0d8
commit 01b75db21a

View File

@ -80,19 +80,19 @@ namespace osu.Desktop
switch (ruleset.ID)
{
case 0:
presence.Assets.SmallImageKey = "osu";
presence.Assets.SmallImageKey = ruleset.ShortName;
break;
case 1:
presence.Assets.SmallImageKey = "taiko";
presence.Assets.SmallImageKey = ruleset.ShortName;
break;
case 2:
presence.Assets.SmallImageKey = "fruits";
presence.Assets.SmallImageKey = ruleset.ShortName;
break;
case 3:
presence.Assets.SmallImageKey = "mania";
presence.Assets.SmallImageKey = ruleset.ShortName;
break;
default: