mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Added check for "menu music beatmap hash" before undeleting so circles.osu doesn't get imported on Undelete. Also moved the const property to BeatmapManager.
This commit is contained in:
@ -34,6 +34,11 @@ namespace osu.Game.Beatmaps
|
||||
/// </summary>
|
||||
public class BeatmapManager
|
||||
{
|
||||
/// <summary>
|
||||
/// The hash of the supplied menu music's beatmap set.
|
||||
/// </summary>
|
||||
public const string MENU_MUSIC_BEATMAP_HASH = "3c8b1fcc9434dbb29e2fb613d3b9eada9d7bb6c125ceb32396c3b53437280c83";
|
||||
|
||||
/// <summary>
|
||||
/// Fired when a new <see cref="BeatmapSetInfo"/> becomes available in the database.
|
||||
/// </summary>
|
||||
@ -341,6 +346,10 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
public void Undelete(BeatmapSetInfo beatmapSet)
|
||||
{
|
||||
// So circles.osz doesn't get added as a map
|
||||
if (beatmapSet.Hash == MENU_MUSIC_BEATMAP_HASH)
|
||||
return;
|
||||
|
||||
lock (importContext)
|
||||
{
|
||||
var context = importContext.Value;
|
||||
|
Reference in New Issue
Block a user