mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 00:52:56 +08:00
Add default fallback for headless operation
This commit is contained in:
parent
f76d00e8ae
commit
bf0ad723f5
@ -6,6 +6,7 @@ using System.Drawing;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
|
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
|
||||||
@ -108,6 +109,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
.ThenByDescending(r => r.Height)
|
.ThenByDescending(r => r.Height)
|
||||||
.Select(res => new KeyValuePair<string, Size>($"{res.Width}x{res.Height}", new Size(res.Width, res.Height)))
|
.Select(res => new KeyValuePair<string, Size>($"{res.Width}x{res.Height}", new Size(res.Width, res.Height)))
|
||||||
.Distinct()
|
.Distinct()
|
||||||
.ToList() ?? Enumerable.Empty<KeyValuePair<string, Size>>();
|
.ToList() ?? new KeyValuePair<string, Size>("Default", new Size(9999, 9999)).Yield();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user