mirror of
https://github.com/ppy/osu
synced 2024-12-26 17:02:59 +00:00
Add inline comments for iOS locals
This commit is contained in:
parent
2fe229d620
commit
89e8baf1d3
@ -198,6 +198,7 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
if (beatmapSet.OnlineID > 0)
|
||||
{
|
||||
// Required local for iOS. Will cause runtime crash if inlined.
|
||||
int onlineId = beatmapSet.OnlineID;
|
||||
|
||||
// OnlineID should really be unique, but to avoid catastrophic failure let's iterate just to be sure.
|
||||
|
@ -40,6 +40,7 @@ namespace osu.Game.Online
|
||||
// Used to interact with manager classes that don't support interface types. Will eventually be replaced.
|
||||
var beatmapSetInfo = new BeatmapSetInfo { OnlineID = TrackedItem.OnlineID };
|
||||
|
||||
// Required local for iOS. Will cause runtime crash if inlined.
|
||||
int onlineId = TrackedItem.OnlineID;
|
||||
|
||||
realmSubscription = realm.RegisterForNotifications(r => r.All<BeatmapSetInfo>().Where(s => s.OnlineID == onlineId && !s.DeletePending), (items, _) =>
|
||||
|
@ -46,6 +46,7 @@ namespace osu.Game.Online
|
||||
Downloader.DownloadBegan += downloadBegan;
|
||||
Downloader.DownloadFailed += downloadFailed;
|
||||
|
||||
// Required local for iOS. Will cause runtime crash if inlined.
|
||||
long onlineId = TrackedItem.OnlineID;
|
||||
long legacyOnlineId = TrackedItem.LegacyOnlineID;
|
||||
string hash = TrackedItem.Hash;
|
||||
|
@ -29,6 +29,7 @@ namespace osu.Game.Skinning
|
||||
invalidateCache();
|
||||
Debug.Assert(fileToStoragePathMapping != null);
|
||||
|
||||
// Required local for iOS. Will cause runtime crash if inlined.
|
||||
Guid id = source.ID;
|
||||
|
||||
realmSubscription = realm?.RegisterForNotifications(r => r.All<T>().Where(s => s.ID == id), skinChanged);
|
||||
|
@ -131,6 +131,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
Realm.Run(r =>
|
||||
{
|
||||
// Required local for iOS. Will cause runtime crash if inlined.
|
||||
Guid currentSkinId = CurrentSkinInfo.Value.ID;
|
||||
|
||||
// choose from only user skins, removing the current selection to ensure a new one is chosen.
|
||||
|
Loading…
Reference in New Issue
Block a user