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.). /// Indicates if the game is in the lobby scene (title screen, chara select, chara make, aesthetician etc.).
/// </summary> /// </summary>
/// <returns>A value indicating whether or not the game is in the lobby scene.</returns> /// <returns>A value indicating whether or not the game is in the lobby scene.</returns>
internal bool IsInLobby() internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8);
{
return RaptureAtkModule.Instance()->CurrentUISceneString == "LobbyMain";
}
/// <summary> /// <summary>
/// Sets the current background music. /// Sets the current background music.