1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 10:42:54 +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)] [Resolved(CanBeNull = true)]
private IAPIProvider api { get; set; } private IAPIProvider api { get; set; }
[Resolved] [Resolved(canBeNull: true)]
private OsuGameBase game { get; set; } private OsuGame game { get; set; }
private const string help_centre_url = "/help/wiki/Help_Centre#login"; private const string help_centre_url = "/help/wiki/Help_Centre#login";
@ -44,7 +44,7 @@ namespace osu.Game.Overlays.AccountCreation
} }
[BackgroundDependencyLoader(true)] [BackgroundDependencyLoader(true)]
private void load(OsuColour colours, OsuGame game, TextureStore textures) private void load(OsuColour colours, TextureStore textures)
{ {
if (string.IsNullOrEmpty(api?.ProvidedUsername)) if (string.IsNullOrEmpty(api?.ProvidedUsername))
return; return;