mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Fix channel view on vWii with Priiloader
This commit is contained in:
parent
e25c4e9643
commit
b5e2c025ad
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ usbloader_gx/
|
||||
/source/svnrev.c
|
||||
/usbloader_gx.zip
|
||||
/wiiload
|
||||
/output
|
||||
|
@ -56,9 +56,16 @@ bool SystemMenuResources::Init()
|
||||
// determine resource cid
|
||||
u16 idx = 0xffff;
|
||||
tmd_content *contents = TMD_CONTENTS( p_tmd );
|
||||
|
||||
// Priiloader moves some system resources that we rely on from index 1 to index 9.
|
||||
// In doing this it creates a 10th index (9) to contain the moved resources.
|
||||
// If priiloader is installed, we need to look for content at index 9 instead of index 1.
|
||||
bool hasVWiiPriiloader = p_tmd->num_contents == 10;
|
||||
u16 targetIndex = hasVWiiPriiloader ? 9 : 1;
|
||||
|
||||
for( u16 i = 0; i < p_tmd->num_contents; i++ )
|
||||
{
|
||||
if( contents[ i ].index == 1 )
|
||||
if( contents[ i ].index == targetIndex )
|
||||
{
|
||||
idx = i;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user