File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ usbloader_gx/
11
11
/source /svnrev.c
12
12
/usbloader_gx.zip
13
13
/wiiload
14
+ /output
Original file line number Diff line number Diff line change @@ -56,9 +56,16 @@ bool SystemMenuResources::Init()
56
56
// determine resource cid
57
57
u16 idx = 0xffff ;
58
58
tmd_content *contents = TMD_CONTENTS ( p_tmd );
59
+
60
+ // Priiloader moves some system resources that we rely on from index 1 to index 9.
61
+ // In doing this it creates a 10th index (9) to contain the moved resources.
62
+ // If priiloader is installed, we need to look for content at index 9 instead of index 1.
63
+ bool hasVWiiPriiloader = p_tmd->num_contents == 10 ;
64
+ u16 targetIndex = hasVWiiPriiloader ? 9 : 1 ;
65
+
59
66
for ( u16 i = 0 ; i < p_tmd->num_contents ; i++ )
60
67
{
61
- if ( contents[ i ].index == 1 )
68
+ if ( contents[ i ].index == targetIndex )
62
69
{
63
70
idx = i;
64
71
break ;
You can’t perform that action at this time.
0 commit comments