I want to load Json File in ‘ConfigDir’ using ‘FFileHelper::LoadfileToString’.
But I have a problem.
There is ‘my-json.json’ file in Project Config Directory.
But, The following code doesn’t work only in android.
(It works well in Win64.)
FString JsonPath = FPaths::ProjectConfigDIr() / TEXT("my-json.json");
FString JsonStr;
if ( FFileHelper::LoadFileToString(JsonStr, *JsonPath) )
{
/// In win64, it comes to this part
}
else
{
/// In Android, it comes to this part
}
Note that, My project use android packing system.
Is there a way to load json file in the config directory?