mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Revert "Remove nullable on RealmBackedResourceStore
realm parameter"
This reverts commit 09e15f5496
.
This commit is contained in:
@ -23,7 +23,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;
|
||||||
@ -31,7 +31,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)
|
||||||
|
Reference in New Issue
Block a user