summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/NetPlayGolfUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayGolfUI.cpp')
-rw-r--r--Source/Core/VideoCommon/NetPlayGolfUI.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/NetPlayGolfUI.cpp b/Source/Core/VideoCommon/NetPlayGolfUI.cpp
index fe67f9a63f..5aeaf66e6b 100644
--- a/Source/Core/VideoCommon/NetPlayGolfUI.cpp
+++ b/Source/Core/VideoCommon/NetPlayGolfUI.cpp
@@ -2,14 +2,13 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.
-#include "Common/StringUtil.h"
-
-#include "Core/NetPlayClient.h"
-
#include "VideoCommon/NetPlayGolfUI.h"
+#include <fmt/format.h>
#include <imgui.h>
+#include "Core/NetPlayClient.h"
+
constexpr float DEFAULT_WINDOW_WIDTH = 220.0f;
constexpr float DEFAULT_WINDOW_HEIGHT = 45.0f;
@@ -57,7 +56,7 @@ void NetPlayGolfUI::Display()
if (client->IsLocalPlayer(player->pid) || !client->PlayerHasControllerMapped(player->pid))
continue;
- if (ImGui::Button(StringFromFormat("Give Control to %s", player->name.c_str()).c_str()))
+ if (ImGui::Button(fmt::format("Give Control to {}", player->name).c_str()))
{
client->RequestGolfControl(player->pid);
}