* Fix issues with bank dependency processing
- Looking for init.bnk in the .bankdeps files needed to do a
case-insensitive check.
- Updated many of the failure/warning messages.
- Fixed one place where warning wasn't being output properly.
- Fixed a couple places where the warning was saying it would add
init.bnk as a dependency (when none was found) but it didn't actually
do that.
Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
* Minor edits to comments and strings
Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
* Check empty rather than size
Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
success_message=AZStd::string::format("Failed to find the metadata file %s for soundbank %s. Full dependency information cannot be determined without the metadata file. Please regenerate the metadata for this soundbank.",bankMetadataPath.c_str(),fullPath.c_str());
success_message=AZStd::string::format(
"Failed to find the metadata file %s for soundbank %s. Full dependency information cannot be determined without the "
"metadata file. Please regenerate the metadata for this soundbank.",
returnAZ::Failure(AZStd::string::format("Soundbank metadata file at path %s is an empty file. Please regenerate the metadata for this soundbank.",bankMetadataPath.c_str()));
returnAZ::Failure(AZStd::string::format(
"Soundbank metadata file at path %s is an empty file. Please regenerate the metadata for this soundbank.",
returnAZ::Failure(AZStd::string::format("Failed to read the soundbank metadata file at path %s. Please make sure the file is not open or being edited by another program.",bankMetadataPath.c_str()));
returnAZ::Failure(AZStd::string::format(
"Failed to read the soundbank metadata file at path %s. Please make sure the file is not open or being edited by another "
returnAZ::Failure(AZStd::string::format("Failed to parse soundbank metadata at path %s into JSON. Please regenerate the metadata for this soundbank.",bankMetadataPath.c_str()));
returnAZ::Failure(AZStd::string::format(
"Failed to parse soundbank metadata at path %s into JSON. Please regenerate the metadata for this soundbank.",
returnAZ::Failure(AZStd::string::format("Failed to gather dependencies for %s from metadata file %s. %s",fullPath.c_str(),bankMetadataPath.c_str(),gatherDependenciesResult.GetError().c_str()));
returnAZ::Failure(AZStd::string::format(
"Dependency metadata file %s was processed, with errors:\n%s",bankMetadataPath.c_str(),
success_message=AZStd::string::format("Dependency information for %s was unavailable in the metadata file %s. %s",fullPath.c_str(),bankMetadataPath.c_str(),gatherDependenciesResult.GetValue().c_str());
success_message=AZStd::string::format(
"Dependency metadata file %s was processed, with warnings:\n%s",bankMetadataPath.c_str(),
gatherDependenciesResult.GetValue().c_str());
}
// Register dependencies stored in the file to the job response. (they'll be relative to the bank itself.)