Fixes paths to AssetProcessor when being run from SDK.
This commit is contained in:
+2
-1
@@ -35,7 +35,8 @@ namespace AzFramework::AssetSystem::Platform
|
|||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor";
|
assetProcessorPath =
|
||||||
|
AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_TRAIT_OS_PLATFORM_NAME / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor";
|
||||||
|
|
||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-1
@@ -34,7 +34,8 @@ namespace AzFramework::AssetSystem::Platform
|
|||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.app";
|
assetProcessorPath =
|
||||||
|
AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_TRAIT_OS_PLATFORM_NAME / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.app";
|
||||||
|
|
||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-1
@@ -71,7 +71,8 @@ namespace AzFramework::AssetSystem::Platform
|
|||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.exe";
|
assetProcessorPath =
|
||||||
|
AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_TRAIT_OS_PLATFORM_NAME / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.exe";
|
||||||
|
|
||||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user