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:
parent
f1ceea8361
commit
d9e646d9ef
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user