mirror of
https://github.com/osukey/osukey.git
synced 2025-05-13 17:47:18 +09:00
Remove nullable on RealmBackedResourceStore
realm parameter
This commit is contained in:
parent
6afed5e865
commit
09e15f5496
@ -24,7 +24,7 @@ namespace osu.Game.Skinning
|
|||||||
private readonly Live<T> liveSource;
|
private readonly Live<T> liveSource;
|
||||||
private readonly IDisposable? realmSubscription;
|
private readonly IDisposable? realmSubscription;
|
||||||
|
|
||||||
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess? realm)
|
public RealmBackedResourceStore(Live<T> source, IResourceStore<byte[]> underlyingStore, RealmAccess realm)
|
||||||
: base(underlyingStore)
|
: base(underlyingStore)
|
||||||
{
|
{
|
||||||
liveSource = source;
|
liveSource = source;
|
||||||
@ -32,7 +32,7 @@ namespace osu.Game.Skinning
|
|||||||
invalidateCache();
|
invalidateCache();
|
||||||
Debug.Assert(fileToStoragePathMapping != null);
|
Debug.Assert(fileToStoragePathMapping != null);
|
||||||
|
|
||||||
realmSubscription = realm?.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
|
realmSubscription = realm.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == source.ID), skinChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user