Use span comparison in GameGui.IsInLobby

This commit is contained in:
Haselnussbomber 2024-11-30 20:42:46 +01:00
parent da718b64c1
commit f7f1b0afc5
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -260,10 +260,7 @@ internal sealed unsafe class GameGui : IInternalDisposableService, IGameGui
/// Indicates if the game is in the lobby scene (title screen, chara select, chara make, aesthetician etc.).
/// </summary>
/// <returns>A value indicating whether or not the game is in the lobby scene.</returns>
internal bool IsInLobby()
{
return RaptureAtkModule.Instance()->CurrentUISceneString == "LobbyMain";
}
internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8);
/// <summary>
/// Sets the current background music.