Hey,
Simple question really I have static content (HTML/text) that I want to load from the currently mounted/default Content pak file, I’ve added it already to the always cook list and it’s being PAK’ed. It’s important to note it’s not a UAsset.
I can read it via FPakPlatformFile::OpenRead()
if I explicitly mount the Content PAK again but it seems redundant.
How do I get access to the current PAK file for the Content that’s already mounted?
This:
...
...
IPlatformFile& InnerPlatformFile = FPlatformFileManager::Get().GetPlatformFile();
FPakPlatformFile* PakPlatformFile = new FPakPlatformFile();
FPlatformFileManager::Get().SetPlatformFile(*PakPlatformFile);
if(!PakPlatformFile->Initialize(&InnerPlatformFile, TEXT("")))
{
return nullptr;
}
...
...
...
bool Mounted = PakPlatformFile->Mount( *PathToContentPak, 100, *TempMountPoint);
…seems to give me a “directory” that has a handful of files in (or seems that way via IterateDirectoryRecursively() anyway), and actually seems to just be the raw non-PAK’ed files.
If I use:
PakPlatformFile->FindFileInPakFiles(L"mythingtoload.html", &Found);
It doesn’t find it.
I’ve verified the file is in the PAK file because “unrealpak -list
” shows it.
Thanks!
PS. This is running a standalone development build with cooked content.