mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +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)
|
lock (workingCache)
|
||||||
{
|
{
|
||||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == info.ID);
|
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == info.ID);
|
||||||
|
|
||||||
if (working != null)
|
if (working != null)
|
||||||
|
{
|
||||||
|
Logger.Log($"Invalidating working beatmap cache for {info}");
|
||||||
workingCache.Remove(working);
|
workingCache.Remove(working);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,6 +90,7 @@ namespace osu.Game.Beatmaps
|
|||||||
lock (workingCache)
|
lock (workingCache)
|
||||||
{
|
{
|
||||||
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
var working = workingCache.FirstOrDefault(w => w.BeatmapInfo?.ID == beatmapInfo.ID);
|
||||||
|
|
||||||
if (working != null)
|
if (working != null)
|
||||||
return working;
|
return working;
|
||||||
|
|
||||||
|
@ -523,7 +523,10 @@ namespace osu.Game.Screens.Edit
|
|||||||
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
|
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
|
||||||
|
|
||||||
if (!(refetchedBeatmap is DummyWorkingBeatmap))
|
if (!(refetchedBeatmap is DummyWorkingBeatmap))
|
||||||
|
{
|
||||||
|
Logger.Log("Editor providing re-fetched beatmap post edit session");
|
||||||
Beatmap.Value = refetchedBeatmap;
|
Beatmap.Value = refetchedBeatmap;
|
||||||
|
}
|
||||||
|
|
||||||
return base.OnExiting(next);
|
return base.OnExiting(next);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user