1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-24 19:17:20 +08:00

Use virtual property rather than inline iOS conditional

This commit is contained in:
Dean Herbert 2024-12-23 14:39:07 +09:00
parent fcfab9e53c
commit 1a7feeb4ed
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View File

@ -221,9 +221,9 @@ namespace osu.Game
private readonly List<OverlayContainer> visibleBlockingOverlays = new List<OverlayContainer>();
/// <summary>
/// Whether the game should be limited to only display licensed content.
/// Whether the game should be limited to only display officially licensed content.
/// </summary>
public bool HideUnlicensedContent => RuntimeInfo.OS == RuntimeInfo.Platform.iOS;
public virtual bool HideUnlicensedContent => false;
public OsuGame(string[] args = null)
{

View File

@ -17,6 +17,8 @@ namespace osu.iOS
{
public override Version AssemblyVersion => new Version(NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString());
public override bool HideUnlicensedContent => true;
protected override UpdateManager CreateUpdateManager() => new MobileUpdateNotifier();
protected override BatteryInfo CreateBatteryInfo() => new IOSBatteryInfo();