mirror of
https://github.com/ppy/osu
synced 2025-02-02 11:21:59 +00:00
Also catch exceptions in the construction call
This commit is contained in:
parent
a15653c77c
commit
644f3375ac
@ -36,18 +36,16 @@ namespace osu.Game.Overlays.Settings.Sections
|
|||||||
{
|
{
|
||||||
foreach (Ruleset ruleset in rulesets.AvailableRulesets.Select(info => info.CreateInstance()))
|
foreach (Ruleset ruleset in rulesets.AvailableRulesets.Select(info => info.CreateInstance()))
|
||||||
{
|
{
|
||||||
SettingsSubsection section = ruleset.CreateSettings();
|
try
|
||||||
|
|
||||||
if (section != null)
|
|
||||||
{
|
{
|
||||||
try
|
SettingsSubsection section = ruleset.CreateSettings();
|
||||||
{
|
|
||||||
|
if (section != null)
|
||||||
Add(section);
|
Add(section);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Logger.Error(e, $"Failed to load ruleset settings");
|
Logger.Error(e, $"Failed to load ruleset settings");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user