From f7f1b0afc50849284e155764ac47ccef8b0c9fa1 Mon Sep 17 00:00:00 2001 From: Haselnussbomber Date: Sat, 30 Nov 2024 20:42:46 +0100 Subject: [PATCH] Use span comparison in GameGui.IsInLobby --- Dalamud/Game/Gui/GameGui.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index 09ff17737..7cd6d7360 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -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.). /// /// A value indicating whether or not the game is in the lobby scene. - internal bool IsInLobby() - { - return RaptureAtkModule.Instance()->CurrentUISceneString == "LobbyMain"; - } + internal bool IsInLobby() => RaptureAtkModule.Instance()->CurrentUIScene.StartsWith("LobbyMain"u8); /// /// Sets the current background music.