Explain it makes no sense to run server with admin rights.

This commit is contained in:
Bartosz Taudul 2022-11-27 22:24:42 +01:00
parent 59f7870345
commit 97c38077cc
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;