After mounting the chunk data, if you run SearchAllAssets(true) in AssetRegistry, the assets existing in the chunk data are also imported in Windows.
However, on mobile, if you run that statement, it crashes.
TFunction<void(bool bSuccess)> LoadingModeCompleteCallback = [&](bool bSuccess)
{
OnLoadingModeComplete(bSuccess);
};
Downloader->BeginLoadingMode(LoadingModeCompleteCallback);
void UPatchingSubsystem::OnLoadingModeComplete(bool bSuccess)
{
if (bSuccess)
{
AssetManager.GetAssetRegistry().SearchAllAssets(true);
}
}
The file path refers to a saved map, but it is passed without adding / at the end, and this seems to be the problem.
Do you know how to solve this problem?