From 97c38077cceede1408e3b69688711d8811e48fd3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 27 Nov 2022 22:24:42 +0100 Subject: [PATCH] Explain it makes no sense to run server with admin rights. --- profiler/src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 42d0a25c..4dc01b2a 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -590,6 +590,17 @@ static void DrawContents() } } } + if( s_isElevated ) + { + ImGui::Separator(); + ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), ICON_FA_TRIANGLE_EXCLAMATION " Profiler has elevated privileges! " ICON_FA_TRIANGLE_EXCLAMATION ); + ImGui::PushFont( s_smallFont ); + ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "You are running the profiler interface with admin privileges. This is" ); + ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "most likely a mistake, as there is no reason to do so. Instead, you" ); + ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "probably wanted to run the client (the application you are profiling)" ); + ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "with elevated privileges." ); + ImGui::PopFont(); + } ImGui::Separator(); ImGui::TextUnformatted( "Client address" ); bool connectClicked = false;