Hello
I recently had to add the Switch2 platform. As there was no specific Switch2 platform in the project platforms I used Switch but changed the output sub-directory to Switch2.
Switch2Game.ini includes
[/Script/UnrealEd.ProjectPackagingSettings]
-DirectoriesToAlwaysStageAsNonUFS=(Path=“FMOD/Desktop”)
+DirectoriesToAlwaysStageAsNonUFS=(Path=“FMOD/Switch2”)
Unfortunately upon loading I get this error:
LogFMOD: Error: C:/buildagent2/work/c1c3f17eb167c494/studio_api/src/fmod_bankmodel.cpp(256) - Failed to open file ‘../../../MyGame/Content/FMOD/Switch/MUSIC.bank’
Is the ‘Switch’ folder name hardcoded in the Fmod library or did I forget to modify a setting in FmodStudio?
Edit: to answer my own question probably the platform name “Switch” is used from this method in the plugin source FMODPlatform.cpp:
FString FMODPlatform_PlatformName()
{
return “Switch”;
}
Thanks