mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Allow null
parameter to GetWorkingBeatmap
for now
This commit is contained in:
parent
98938821e5
commit
82134ad1a6
@ -436,7 +436,9 @@ namespace osu.Game.Beatmaps
|
|||||||
/// <param name="beatmapInfo">The beatmap to lookup.</param>
|
/// <param name="beatmapInfo">The beatmap to lookup.</param>
|
||||||
/// <param name="refetch">Whether to force a refetch from the database to ensure <see cref="BeatmapInfo"/> is up-to-date.</param>
|
/// <param name="refetch">Whether to force a refetch from the database to ensure <see cref="BeatmapInfo"/> is up-to-date.</param>
|
||||||
/// <returns>A <see cref="WorkingBeatmap"/> instance correlating to the provided <see cref="BeatmapInfo"/>.</returns>
|
/// <returns>A <see cref="WorkingBeatmap"/> instance correlating to the provided <see cref="BeatmapInfo"/>.</returns>
|
||||||
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo beatmapInfo, bool refetch = false)
|
public WorkingBeatmap GetWorkingBeatmap(BeatmapInfo? beatmapInfo, bool refetch = false)
|
||||||
|
{
|
||||||
|
if (beatmapInfo != null)
|
||||||
{
|
{
|
||||||
// Detached sets don't come with files.
|
// Detached sets don't come with files.
|
||||||
// If we seem to be missing files, now is a good time to re-fetch.
|
// If we seem to be missing files, now is a good time to re-fetch.
|
||||||
@ -449,6 +451,7 @@ namespace osu.Game.Beatmaps
|
|||||||
}
|
}
|
||||||
|
|
||||||
Debug.Assert(beatmapInfo.IsManaged != true);
|
Debug.Assert(beatmapInfo.IsManaged != true);
|
||||||
|
}
|
||||||
|
|
||||||
return workingBeatmapCache.GetWorkingBeatmap(beatmapInfo);
|
return workingBeatmapCache.GetWorkingBeatmap(beatmapInfo);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user