Fixes issue with ACE displaying only banks (#1427)
Updates to some AzCore functions a while ago made some path functions strip off a trailing slash, which caused bad paths to be used when loading middleware data. Updated the code to use better path APIs.
This commit is contained in:
@@ -54,12 +54,12 @@ namespace AudioControls
|
||||
void CAudioWwiseLoader::Load(CAudioSystemEditor_wwise* audioSystemImpl)
|
||||
{
|
||||
m_audioSystemImpl = audioSystemImpl;
|
||||
const AZStd::string wwiseProjectFullPath(m_audioSystemImpl->GetDataPath());
|
||||
LoadControlsInFolder(wwiseProjectFullPath + WwiseStrings::GameParametersFolder);
|
||||
LoadControlsInFolder(wwiseProjectFullPath + WwiseStrings::GameStatesFolder);
|
||||
LoadControlsInFolder(wwiseProjectFullPath + WwiseStrings::SwitchesFolder);
|
||||
LoadControlsInFolder(wwiseProjectFullPath + WwiseStrings::EventsFolder);
|
||||
LoadControlsInFolder(wwiseProjectFullPath + WwiseStrings::EnvironmentsFolder);
|
||||
const AZ::IO::FixedMaxPath wwiseProjectFullPath{ m_audioSystemImpl->GetDataPath() };
|
||||
LoadControlsInFolder(AZ::IO::FixedMaxPath{ wwiseProjectFullPath / WwiseStrings::GameParametersFolder }.Native());
|
||||
LoadControlsInFolder(AZ::IO::FixedMaxPath{ wwiseProjectFullPath / WwiseStrings::GameStatesFolder }.Native());
|
||||
LoadControlsInFolder(AZ::IO::FixedMaxPath{ wwiseProjectFullPath / WwiseStrings::SwitchesFolder }.Native());
|
||||
LoadControlsInFolder(AZ::IO::FixedMaxPath{ wwiseProjectFullPath / WwiseStrings::EventsFolder }.Native());
|
||||
LoadControlsInFolder(AZ::IO::FixedMaxPath{ wwiseProjectFullPath / WwiseStrings::EnvironmentsFolder }.Native());
|
||||
LoadSoundBanks(Audio::Wwise::GetBanksRootPath(), "", false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user