Using new GetBool value when checking if we're an editor-server. Clean up MPEditorSystemComponent for unused #includes, and null-checking when piping server logs

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-11-30 11:12:07 -08:00
parent d600b1c9fd
commit 6d0ba68b55
2 changed files with 13 additions and 8 deletions
+2 -3
View File
@@ -741,9 +741,8 @@ bool CSystem::Init(const SSystemInitParams& startupParams)
bool suppressSystemOutput = true;
if (const ICmdLineArg* isEditorServerArg = m_pCmdLine->FindArg(eCLAT_Pre, "editorsv_isDedicated"))
{
AZ::CVarFixedString lowercaseValue(isEditorServerArg->GetValue());
AZStd::to_lower(lowercaseValue.begin(), lowercaseValue.end());
if (lowercaseValue == "true")
bool editorsv_isDedicated = false;
if (isEditorServerArg->GetBoolValue(editorsv_isDedicated) && editorsv_isDedicated)
{
suppressSystemOutput = false;
}