Add support for WUHB file format (#1190)

This commit is contained in:
goeiecool9999 2024-05-05 02:35:01 +02:00 committed by GitHub
parent f28043e0e9
commit dc480ac00b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 617 additions and 3 deletions

View file

@ -1230,6 +1230,16 @@ void wxGameList::AsyncWorkerThread()
if(!titleInfo.Mount(tempMountPath, "", FSC_PRIORITY_BASE))
continue;
auto tgaData = fsc_extractFile((tempMountPath + "/meta/iconTex.tga").c_str());
// try iconTex.tga.gz
if (!tgaData)
{
tgaData = fsc_extractFile((tempMountPath + "/meta/iconTex.tga.gz").c_str());
if (tgaData)
{
auto decompressed = zlibDecompress(*tgaData, 70*1024);
std::swap(tgaData, decompressed);
}
}
bool iconSuccessfullyLoaded = false;
if (tgaData && tgaData->size() > 16)
{