mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Use span comparison in GameGui.IsInLobby
This commit is contained in:
parent
da718b64c1
commit
f7f1b0afc5
1 changed files with 1 additions and 4 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue