mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 02:22:59 +08:00
Remove permitNulls
This commit is contained in:
parent
acf5442ca3
commit
c5a20e3372
@ -71,8 +71,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private bool loadedSuccessfully => RulesetContainer?.Objects.Any() == true;
|
private bool loadedSuccessfully => RulesetContainer?.Objects.Any() == true;
|
||||||
|
|
||||||
[BackgroundDependencyLoader(permitNulls: true)]
|
[BackgroundDependencyLoader]
|
||||||
private void load(AudioManager audio, OsuConfigManager config, OsuGame osu, APIAccess api)
|
private void load(AudioManager audio, OsuConfigManager config, APIAccess api)
|
||||||
{
|
{
|
||||||
this.api = api;
|
this.api = api;
|
||||||
|
|
||||||
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Play
|
|||||||
if (beatmap == null)
|
if (beatmap == null)
|
||||||
throw new InvalidOperationException("Beatmap was not loaded");
|
throw new InvalidOperationException("Beatmap was not loaded");
|
||||||
|
|
||||||
ruleset = osu?.Ruleset.Value ?? beatmap.BeatmapInfo.Ruleset;
|
ruleset = Ruleset.Value ?? beatmap.BeatmapInfo.Ruleset;
|
||||||
var rulesetInstance = ruleset.CreateInstance();
|
var rulesetInstance = ruleset.CreateInstance();
|
||||||
|
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user