mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-29 07:37:03 +00:00
Add support for WUHB file format (#1190)
This commit is contained in:
parent
f28043e0e9
commit
dc480ac00b
15 changed files with 617 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -948,6 +948,8 @@ wxString wxTitleManagerList::GetTitleEntryText(const TitleEntry& entry, ItemColu
|
|||
return _("NUS");
|
||||
case wxTitleManagerList::EntryFormat::WUA:
|
||||
return _("WUA");
|
||||
case wxTitleManagerList::EntryFormat::WUHB:
|
||||
return _("WUHB");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
@ -1022,6 +1024,9 @@ void wxTitleManagerList::HandleTitleListCallback(CafeTitleListCallbackEvent* evt
|
|||
case TitleInfo::TitleDataFormat::WIIU_ARCHIVE:
|
||||
entryFormat = EntryFormat::WUA;
|
||||
break;
|
||||
case TitleInfo::TitleDataFormat::WUHB:
|
||||
entryFormat = EntryFormat::WUHB;
|
||||
break;
|
||||
case TitleInfo::TitleDataFormat::HOST_FS:
|
||||
default:
|
||||
entryFormat = EntryFormat::Folder;
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ public:
|
|||
WUD,
|
||||
NUS,
|
||||
WUA,
|
||||
WUHB,
|
||||
};
|
||||
|
||||
// sort by column, if -1 will sort by last column or default (=titleid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue