1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 15:33:21 +08:00

Use addRuleset inside loadRulesetFromFile

This commit is contained in:
miterosan 2019-07-03 09:51:09 +02:00
parent f1ceea8361
commit d9e646d9ef

View File

@ -143,8 +143,7 @@ namespace osu.Game.Rulesets
try
{
var assembly = Assembly.LoadFrom(file);
loaded_assemblies[assembly] = assembly.GetTypes().First(t => t.IsPublic && t.IsSubclassOf(typeof(Ruleset)));
addRuleset(Assembly.LoadFrom(file));
}
catch (Exception e)
{