mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Catch a second location
This commit is contained in:
parent
b092e6937a
commit
6c64cea057
@ -8,6 +8,7 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
@ -31,6 +32,8 @@ namespace osu.Game.Overlays.Settings
|
||||
var modes = new List<Drawable>();
|
||||
|
||||
foreach (var ruleset in rulesets.AvailableRulesets)
|
||||
{
|
||||
try
|
||||
{
|
||||
var icon = new ConstrainedIconContainer
|
||||
{
|
||||
@ -43,6 +46,11 @@ namespace osu.Game.Overlays.Settings
|
||||
|
||||
modes.Add(icon);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Logger.Log($"Could not create ruleset icon for {ruleset.Name}. Please check for an update from the developer.", level: LogLevel.Error);
|
||||
}
|
||||
}
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
|
@ -19,15 +19,15 @@ namespace osu.Game.Rulesets
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
foreach (var r in Rulesets.AvailableRulesets)
|
||||
foreach (var ruleset in Rulesets.AvailableRulesets)
|
||||
{
|
||||
try
|
||||
{
|
||||
AddItem(r);
|
||||
AddItem(ruleset);
|
||||
}
|
||||
catch
|
||||
{
|
||||
Logger.Log($"Could not create ruleset icon for {r.Name}. Please check for an update.", level: LogLevel.Error);
|
||||
Logger.Log($"Could not create ruleset icon for {ruleset.Name}. Please check for an update from the developer.", level: LogLevel.Error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user