Hacking Editing WiiSCU source

illinialex24

Well-Known Member
OP
Member
Joined
May 26, 2009
Messages
968
Trophies
0
Location
The Midwest
Website
www.youtube.com
XP
78
Country
United States
90% sure I found the issue, I also fixed something to add an error message but I wanna see if I can just edit this. Gonna try testing this out.

Anyway, in installer.c we have:

CODEÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ//ios60
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif (ios60 == 1) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[*] Installing IOS60 without trucha bug ..\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ#ifdef DEBUG
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("going into patchmii control\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ#endif
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂret = patchmii_install(1,60,0,1,60,0,0);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif (ret < 0) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[-] PatchMii_install(); returned %d", ret);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[*] Press any key to quit.\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂwait_anyKey();
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂexit(1);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif (ios60 == 2) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[*] Installing IOS60 with trucha bug ..\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ#ifdef DEBUG
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("going into patchmii control\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ#endif
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂret = patchmii_install(1,60,0,1,60,0,1);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂif (ret < 0) {
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[-] PatchMii_install(); returned %d", ret);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂprintf("[*] Press any key to quit.\n");
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂwait_anyKey();
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂexit(1);
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ}

Now, the patchmii stuff, I'm guessing the 0's should be changed because 0 should be the latest version, but I don't know what to change it to. Gonna check out patchmii for more info.
 

damysteryman

I am too busy IRL these days...
Member
Joined
Oct 4, 2007
Messages
1,223
Trophies
1
XP
1,026
Country
Antarctica
OK, I'm a little too lazy right now (getting tired, it's getting late where I live), but I can tell you what 0's you need to change:
ret = patchmii_install(1,60,0,1,60,0,0);
change to:
ret = patchmii_install(1,60,6174,1,60,6174,0);

I can't remember what the last 0 is for though.

Make sure the IOS that WiiSCU is running under has the IOS version check patched out (IOS249 has it patched out), otherwise people with IOS60 v6400 installed, may get error -1035 (version number is lower than what is already installed).
 

illinialex24

Well-Known Member
OP
Member
Joined
May 26, 2009
Messages
968
Trophies
0
Location
The Midwest
Website
www.youtube.com
XP
78
Country
United States
The last 0 is trucha, I know that. And thanks.

Thats great help, one issue though. I have around 10,000 copies of cygwin1.dll running so I can't use the make feature, gonna try to fix this so I can release it.

Thanks so much.


Cool thanks.
So it goes, (1 for system files, IOS#, version (0 is latest), repeat..., 0 for no trucha, 1 for trucha).

I'm just doing this so people don't brick their Wii with this, so its not gonna be a complex patch (not a programmer...).
 

illinialex24

Well-Known Member
OP
Member
Joined
May 26, 2009
Messages
968
Trophies
0
Location
The Midwest
Website
www.youtube.com
XP
78
Country
United States
Yeah, although I think I'd make a new download link after its tested (I'll let you do this or if you want to, I can make it, it'd have a new readme and credit you a lot and have the original coder in the coder but you in the meta.xml) so it can be noob friendly.

But yeah, almost testing.
 

damysteryman

I am too busy IRL these days...
Member
Joined
Oct 4, 2007
Messages
1,223
Trophies
1
XP
1,026
Country
Antarctica
illinialex24 said:
The last 0 is trucha, I know that. And thanks.

Thats great help, one issue though. I have around 10,000 copies of cygwin1.dll running so I can't use the make feature, gonna try to fix this so I can release it.

Thanks so much.


Cool thanks.
So it goes, (1 for system files, IOS#, version (0 is latest), repeat..., 0 for no trucha, 1 for trucha).

I'm just doing this so people don't brick their Wii with this, so its not gonna be a complex patch (not a programmer...).
Yeah, it goes:
first half of title id, second half of title id, version
^ for what patchmii downloads

then:

first half of title id, second half of title id, version
^ for what patchmii installs it as

then, according to what you said:
1 for trucha sign it, 0 to not trucha sign it.
 

Det1re

det1re.de
Member
Joined
Oct 28, 2008
Messages
1,272
Trophies
0
Age
34
Location
Germany
Website
det1re.de
XP
264
Country
Gambia, The
illinialex24 said:
Yeah, although I think I'd make a new download link after its tested (I'll let you do this or if you want to, I can make it, it'd have a new readme and credit you a lot and have the original coder in the coder but you in the meta.xml) so it can be noob friendly.

But yeah, almost testing.

Feel free do do anything you want to do with it... =)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: This parrot is no more it has ceased to be!