mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 12:23:21 +08:00
Fix mania maps not being treated as mania maps in release builds
This commit is contained in:
parent
663778b2f6
commit
b1a3f01212
@ -84,10 +84,11 @@ namespace osu.Game.Rulesets
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var instance = r.CreateInstance();
|
var instanceInfo = ((Ruleset)Activator.CreateInstance(Type.GetType(r.InstantiationInfo), (RulesetInfo)null)).RulesetInfo;
|
||||||
|
|
||||||
r.Name = instance.Description;
|
r.Name = instanceInfo.Name;
|
||||||
r.ShortName = instance.ShortName;
|
r.ShortName = instanceInfo.ShortName;
|
||||||
|
r.InstantiationInfo = instanceInfo.InstantiationInfo;
|
||||||
|
|
||||||
r.Available = true;
|
r.Available = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user