1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Move OsuGame out of load method

This commit is contained in:
Joseph Madamba 2021-05-18 14:32:56 -07:00
parent bde7f88eb3
commit 4cc573690e

View File

@ -26,8 +26,8 @@ namespace osu.Game.Overlays.AccountCreation
[Resolved(CanBeNull = true)]
private IAPIProvider api { get; set; }
[Resolved]
private OsuGameBase game { get; set; }
[Resolved(canBeNull: true)]
private OsuGame game { get; set; }
private const string help_centre_url = "/help/wiki/Help_Centre#login";
@ -44,7 +44,7 @@ namespace osu.Game.Overlays.AccountCreation
}
[BackgroundDependencyLoader(true)]
private void load(OsuColour colours, OsuGame game, TextureStore textures)
private void load(OsuColour colours, TextureStore textures)
{
if (string.IsNullOrEmpty(api?.ProvidedUsername))
return;