ppy / osu

rhythm is just a *click* away!
https://osu.ppy.sh
MIT License
15.51k stars 2.3k forks source link

Adding a new background/audio file in the editor may remove file which is used in other difficulties #30806

Open peppy opened 5 days ago

peppy commented 5 days ago

The method for replacing the background doesn't currently check if the old background was used or not:

https://github.com/ppy/osu/blob/7cd724f342adca027eee034ce352a1a4dfc1a458/osu.Game/Screens/Edit/Setup/ResourcesSection.cs#L84-L94

Same applies to audio file.

Discussed in https://github.com/ppy/osu/discussions/30435

Originally posted by **AFasterSlowpoke** October 27, 2024 When I drag an image to the osu lazer editor to set the background, it changes the background for all difficulties, instead of just the difficulty i'm currently editing. I think that it would improve the osu lazer editor if dragging and dropping a new background only changed the current difficulty's background, with a button to set the current difficulty's background to all other difficulties.