Fix compile errors in the Wwise Gem (#3989)
One fixes string literal format specifiers warnings that were disabled. One fixes a FileFunc utility that was removed. Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
#include <AzCore/Component/ComponentApplicationBus.h>
|
||||
#include <AzCore/IO/Path/Path.h>
|
||||
#include <AzCore/Serialization/Json/JsonSerialization.h>
|
||||
#include <AzCore/Serialization/Json/JsonUtils.h>
|
||||
#include <AzCore/Serialization/SerializeContext.h>
|
||||
#include <AzFramework/FileFunc/FileFunc.h>
|
||||
|
||||
// For AZ_Printf statements...
|
||||
#define WWISE_CONFIG_WINDOW "WwiseConfig"
|
||||
@@ -56,7 +56,7 @@ namespace Audio::Wwise
|
||||
bool ConfigurationSettings::Load(const AZStd::string& filePath)
|
||||
{
|
||||
AZ::IO::Path fileIoPath(filePath);
|
||||
auto outcome = AzFramework::FileFunc::ReadJsonFile(fileIoPath);
|
||||
auto outcome = AZ::JsonSerializationUtils::ReadJsonFile(fileIoPath.Native());
|
||||
if (!outcome)
|
||||
{
|
||||
AZ_Printf(WWISE_CONFIG_WINDOW, "ERROR: %s\n", outcome.GetError().c_str());
|
||||
@@ -92,7 +92,7 @@ namespace Audio::Wwise
|
||||
return false;
|
||||
}
|
||||
|
||||
auto outcome = AzFramework::FileFunc::WriteJsonFile(jsonDoc, filePath);
|
||||
auto outcome = AZ::JsonSerializationUtils::WriteJsonFile(jsonDoc, filePath);
|
||||
if (!outcome)
|
||||
{
|
||||
AZ_Printf(WWISE_CONFIG_WINDOW, "ERROR: %s\n", outcome.GetError().c_str());
|
||||
|
||||
Reference in New Issue
Block a user