mirror of https://github.com/ppy/osu
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 @@ protected void AddMissingRulesets()
|
|||
{
|
||||
try
|
||||
{
|
||||
var instance = r.CreateInstance();
|
||||
var instanceInfo = ((Ruleset)Activator.CreateInstance(Type.GetType(r.InstantiationInfo), (RulesetInfo)null)).RulesetInfo;
|
||||
|
||||
r.Name = instance.Description;
|
||||
r.ShortName = instance.ShortName;
|
||||
r.Name = instanceInfo.Name;
|
||||
r.ShortName = instanceInfo.ShortName;
|
||||
r.InstantiationInfo = instanceInfo.InstantiationInfo;
|
||||
|
||||
r.Available = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue