And it mounts well, i saw there was a files by this func (= in IPlatformFIlePak.cpp
bool FPakPlatformFile::HandleMountPakDelegate(const FString& PakFilePath, uint32 PakOrder,
IPlatformFile::FDirectoryVisitor* Visitor)
{
bool bReturn = Mount(*PakFilePath, PakOrder);
if (bReturn)// && Visitor != nullptr)
{
TArray<FPakListEntry> Paks;
GetMountedPaks(Paks);
// Find the single pak we just mounted
for (auto Pak : Paks)
{
if (PakFilePath == Pak.PakFile->GetFilename())
{
// Get a list of all of the files in the pak
for (FPakFile::FFileIterator It(*Pak.PakFile); It; ++It)
{
//Visitor->Visit(*It.Filename(), false);
UE_LOG(LogPakFile, Log, TEXT("Filename %s in Pak %s"), *It.Filename(), *Pak.PakFile->GetFilename());
}
return true;
}
}
}
return bReturn;
}
But we cant load anything from this pak, whe i fully reload app, plugin mount chunk1 at startup cuz it exist, and all work. =\
So i get, i can load files by StaticLoadObject, but i need to reload Packages that are loaded as NULL cuz they dont exist at start map. How can i dot that? I try do it with Visitor when mount Chunk, but its never reach to Package Reseted!