diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2019-11-28 15:03:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-28 15:03:23 -0800 |
| commit | 4a0611df5472ea58af2f7960c8fc91db56c68d5f (patch) | |
| tree | 3fc7a9c466cbecdaca0721e6e5d56869fd13ba4b /Source/Core/VideoCommon/NetPlayGolfUI.cpp | |
| parent | b5656df7e8c397474a00e7f64822e56bcdf826b6 (diff) | |
| parent | 6fbbc2683eeedf3767ea3d741c62555a30d3ff45 (diff) | |
Merge pull request #8487 from lioncash/video-fmt
VideoCommon: Make use of fmt outside of shader generators
Diffstat (limited to 'Source/Core/VideoCommon/NetPlayGolfUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/NetPlayGolfUI.cpp | 9 |
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); } |
