mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 08:02:54 +08:00
Add logging of WorkingBeatmapCache.Invalidate
calls
This commit is contained in:
parent
8d479bbe56
commit
09536cd733
@ -66,8 +66,12 @@ namespace osu.Game.Beatmaps
|
||||
lock (workingCache)
|
||||
{
|
||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == info.ID);
|
||||
|
||||
if (working != null)
|
||||
{
|
||||
Logger.Log($"Invalidating working beatmap cache for {info}");
|
||||
workingCache.Remove(working);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -86,6 +90,7 @@ namespace osu.Game.Beatmaps
|
||||
lock (workingCache)
|
||||
{
|
||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
||||
|
||||
if (working != null)
|
||||
return working;
|
||||
|
||||
|
@ -523,7 +523,10 @@ namespace osu.Game.Screens.Edit
|
||||
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
|
||||
|
||||
if (!(refetchedBeatmap is DummyWorkingBeatmap))
|
||||
{
|
||||
Logger.Log("Editor providing re-fetched beatmap post edit session");
|
||||
Beatmap.Value = refetchedBeatmap;
|
||||
}
|
||||
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user