Fix issues with audio localization bank switching (#2945)
* Fix issues with locating and loading loc banks The code that initially checked the g_languageAudio cvar wasn't properly detecting when the cvar wasn't set. Fixed an issue discovering localized banks wasn't properly recursing into subdirectories. Simplified handling of audio language switching for Wwise. Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com> * Address feedback on PR Change .size() == 0 to .empty() Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
This commit is contained in:
@@ -2173,16 +2173,7 @@ namespace Audio
|
||||
{
|
||||
if (language)
|
||||
{
|
||||
AZStd::string languageSubfolder;
|
||||
|
||||
if (azstricmp(language, "english") == 0)
|
||||
{
|
||||
languageSubfolder = "english(us)";
|
||||
}
|
||||
else
|
||||
{
|
||||
languageSubfolder = language;
|
||||
}
|
||||
AZStd::string languageSubfolder(language);
|
||||
|
||||
languageSubfolder += "/";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user