Compare commits
1 Commits
2025.829.0
...
2025.830.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 02e7000ee4 |
@@ -1402,8 +1402,23 @@ namespace osu.Game.Screens.Edit
|
|||||||
private void anonymizeBeatmap()
|
private void anonymizeBeatmap()
|
||||||
{
|
{
|
||||||
dialogOverlay.Push(new ConfirmDialog(
|
dialogOverlay.Push(new ConfirmDialog(
|
||||||
"Really remove online IDs?",
|
"Really remove online IDs?", () =>
|
||||||
() => playableBeatmap.BeatmapInfo.ResetOnlineInfo(true)
|
{
|
||||||
|
var maps = editorBeatmap.BeatmapInfo.BeatmapSet.Beatmaps;
|
||||||
|
foreach (BeatmapInfo map in maps)
|
||||||
|
{
|
||||||
|
map.OnlineID = -1;
|
||||||
|
map.BeatmapSet.OnlineID = -1;
|
||||||
|
map.ResetOnlineInfo(true);
|
||||||
|
beatmapManager.Save(
|
||||||
|
map,
|
||||||
|
beatmapManager.GetWorkingBeatmap(map, true)!.Beatmap,
|
||||||
|
editorBeatmap.BeatmapSkin
|
||||||
|
); // as much as I don't want to mutate this much, there's no other choice
|
||||||
|
}
|
||||||
|
updateLastSavedHash();
|
||||||
|
onScreenDisplay?.Display(new BeatmapEditorToast("Online IDs removed", editorBeatmap.BeatmapInfo.GetDisplayTitle()));
|
||||||
|
}
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user