can pass in AZ::Utils::GetProjectPath().c_str() directly now that i'm not converting strings

Signed-off-by: Gene Walters <genewalt@amazon.com>
This commit is contained in:
Gene Walters
2021-10-06 16:26:12 -07:00
parent 26079f7350
commit f8d1c568fd
@@ -144,12 +144,10 @@ namespace Multiplayer
}
// Start the configured server if it's available
AZStd::string projectPath(AZ::Utils::GetProjectPath().c_str());
AZStd::replace(projectPath.begin(), projectPath.end(), AZ::IO::WindowsPathSeparator, AZ::IO::PosixPathSeparator);
AzFramework::ProcessLauncher::ProcessLaunchInfo processLaunchInfo;
processLaunchInfo.m_commandlineParameters = AZStd::string::format(
R"("%s" --project-path "%s" --editorsv_isDedicated true --sv_defaultPlayerSpawnAsset "%s")", serverPath.c_str(),
projectPath.c_str(), static_cast<AZ::CVarFixedString>(sv_defaultPlayerSpawnAsset).c_str());
AZ::Utils::GetProjectPath().c_str(), static_cast<AZ::CVarFixedString>(sv_defaultPlayerSpawnAsset).c_str());
processLaunchInfo.m_showWindow = true;
processLaunchInfo.m_processPriority = AzFramework::ProcessPriority::PROCESSPRIORITY_NORMAL;