Skip to content

Commit

Permalink
Fix test case and change text.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Aug 2, 2020
1 parent 69b31c8 commit 80ca68d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ protected KaraokeSkinnableColumnTestScene()
[BackgroundDependencyLoader]
private void load(RulesetConfigCache configCache)
{
// Cache ruleset config manager because karaoke input manager need it.
// Cache ruleset config manager and session because karaoke input manager need it.
var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());
var session = new KaraokeSessionStatics(config, null);

Dependencies.Cache(config);
Dependencies.Cache(session);
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ public class TestSceneNotePlayfield : KaraokeSkinnableColumnTestScene
[BackgroundDependencyLoader]
private void load(RulesetConfigCache configCache)
{
var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());
Dependencies.Cache(new KaraokeSessionStatics(config, null));

SetContents(() => new KaraokeInputManager(new KaraokeRuleset().RulesetInfo)
{
Child = new NotePlayfield(COLUMN_NUMBER)
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke/UI/Components/SaitenStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected virtual string GetSaitenStatusText(SaitenStatusMode statusMode)
case SaitenStatusMode.Saitening:
return "Saiteining...";
case SaitenStatusMode.NotInitialized:
return "Weird... Should not goes to here :thinking:";
return "Seems microphone device is not ready.";
default:
return "Weird... Should not goes to here either :oops:";
}
Expand Down

0 comments on commit 80ca68d

Please sign in to comment.