mirror of
https://github.com/ppy/osu
synced 2024-12-17 20:35:21 +00:00
Fix unit tests trying to resolve OsuGame
This commit is contained in:
parent
ec12a21088
commit
8847b88e65
@ -158,7 +158,7 @@ namespace osu.Game.Screens.Play
|
|||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(AudioManager audio, OsuConfigManager config, OsuGame game)
|
private void load(AudioManager audio, OsuConfigManager config, OsuGameBase game)
|
||||||
{
|
{
|
||||||
Mods.Value = base.Mods.Value.Select(m => m.CreateCopy()).ToArray();
|
Mods.Value = base.Mods.Value.Select(m => m.CreateCopy()).ToArray();
|
||||||
|
|
||||||
@ -174,7 +174,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
mouseWheelDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
|
mouseWheelDisabled = config.GetBindable<bool>(OsuSetting.MouseDisableWheel);
|
||||||
|
|
||||||
isGameplay.BindTo(game.IsGameplay);
|
if (game is OsuGame osuGame)
|
||||||
|
isGameplay.BindTo(osuGame.IsGameplay);
|
||||||
|
|
||||||
DrawableRuleset = ruleset.CreateDrawableRulesetWith(playableBeatmap, Mods.Value);
|
DrawableRuleset = ruleset.CreateDrawableRulesetWith(playableBeatmap, Mods.Value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user