Integrating latest from github/staging

Integrating up through commit 5e1bdae
This commit is contained in:
alexpete
2021-03-26 14:31:50 -07:00
parent 9c54341af8
commit 36c4e827bd
764 changed files with 11453 additions and 20251 deletions
@@ -16,6 +16,7 @@
#include <AzCore/IO/SystemFile.h>
#include <AzCore/std/algorithm.h>
#include <AzCore/Utils/Utils.h>
#include <AzToolsFramework/API/EditorAssetSystemAPI.h>
@@ -72,15 +73,15 @@ namespace
template<>
AZStd::string GetProjectName()
{
AZStd::string projectRoot = GetAbsoluteProjectRoot<AZStd::string>();
return projectRoot.substr(projectRoot.find_last_of('/') + 1);
auto projectName = AZ::Utils::GetProjectName();
return AZStd::string{projectName.c_str()};
}
template<>
QString GetProjectName()
{
QString projectRoot = GetAbsoluteProjectRoot<QString>();
return projectRoot.mid(projectRoot.lastIndexOf('/'));
auto projectName = AZ::Utils::GetProjectName();
return QString::fromUtf8(projectName.c_str(), aznumeric_cast<int>(projectName.size()));
}
}