Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor IWorkingBeatmap.Background to GetBackground() #23808

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

peppy
Copy link
Member

@peppy peppy commented Jun 8, 2023

This property has been misleading for a long time (see comment about a new texture being returned each time due to refcounting), so I propose we rename it in line with our standards to avoid any confusion.

@peppy peppy force-pushed the working-beatmap-get-background branch from 95882d3 to a842f79 Compare June 8, 2023 07:19
@@ -23,8 +23,9 @@ public BeatmapBackgroundSprite(IWorkingBeatmap working)
[BackgroundDependencyLoader]
private void load()
{
if (working.Background != null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example alone should be enough for anyone to jump on this change. It's actually retrieving two backgrounds (one in the null check).

@bdach bdach merged commit 281aae9 into ppy:master Jun 8, 2023
@peppy peppy deleted the working-beatmap-get-background branch June 8, 2023 13:48
andy840119 added a commit to andy840119/karaoke that referenced this pull request Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants