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;