mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
Merge pull request #21558 from peppy/fix-wrong-di
Fix incorrect resolution of `GameHost` in `LegacyImportManager`
This commit is contained in:
commit
313f6e2f10
@ -42,8 +42,8 @@ namespace osu.Game.Database
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private RealmAccess realmAccess { get; set; } = null!;
|
private RealmAccess realmAccess { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved(canBeNull: true)] // canBeNull required while we remain on mono for mobile platforms.
|
[Resolved]
|
||||||
private DesktopGameHost? desktopGameHost { get; set; }
|
private GameHost gameHost { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private INotificationOverlay? notifications { get; set; }
|
private INotificationOverlay? notifications { get; set; }
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
public bool SupportsImportFromStable => RuntimeInfo.IsDesktop;
|
public bool SupportsImportFromStable => RuntimeInfo.IsDesktop;
|
||||||
|
|
||||||
public void UpdateStorage(string stablePath) => cachedStorage = new StableStorage(stablePath, desktopGameHost);
|
public void UpdateStorage(string stablePath) => cachedStorage = new StableStorage(stablePath, gameHost as DesktopGameHost);
|
||||||
|
|
||||||
public virtual async Task<int> GetImportCount(StableContent content, CancellationToken cancellationToken)
|
public virtual async Task<int> GetImportCount(StableContent content, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user