Can somebody explain how to use FCoreDelegates::OnMountPak? Is see that you need to call .Execute on it, and when the engine is bound to it, it will load the specified file. But as always, the signature parameters are not documented.
// delegate type for prompting the pak system to mount a new pak
DECLARE_DELEGATE_RetVal_ThreeParams(bool, FOnMountPak, const FString&, uint32, IPlatformFile::FDirectoryVisitor*);
FString&: should be the path to the .pak
uint32: Goes to PakOrder, see below. Seems to be the order in which pak files are read. Highest number = loaded first.
IPlatformFile::FDirectoryVisitor*: what is this needed for and what to give it? Need to create a new FDirectoryVisitor or do we need to get on already existing from somewhere?
If OnMountPak is bound by FPakPlatformFile, it delegates to
/**
* Handler for device delegate to prompt us to load a new pak.
*/
bool HandleMountPakDelegate(const FString& PakFilePath, uint32 PakOrder, IPlatformFile::FDirectoryVisitor* Visitor);
Where is the documentation …