Always use circles intro for `OsuGame` tests

The triangles intro tracks video time, which is not adjusted based on
the game's playback rate (ie. it runs in realtime even for headless
tests).

Maybe we want to make the triangles video adjust its rate along with
tests?
This commit is contained in:
Dean Herbert 2021-10-07 15:46:50 +09:00
parent a57b080f10
commit 290c9755e2
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,7 @@
using osu.Game.Screens;
using osu.Game.Screens.Menu;
using osuTK.Graphics;
using IntroSequence = osu.Game.Configuration.IntroSequence;
namespace osu.Game.Tests.Visual
{
@ -144,6 +145,9 @@ public TestOsuGame(Storage storage, IAPIProvider api)
protected override void LoadComplete()
{
base.LoadComplete();
LocalConfig.SetValue(OsuSetting.IntroSequence, IntroSequence.Circles);
API.Login("Rhythm Champion", "osu!");
Dependencies.Get<SessionStatics>().SetValue(Static.MutedAudioNotificationShownOnce, true);