Editing WiiSCU source

Discussion in 'Wii - Hacking' started by illinialex24, Oct 10, 2009.

Oct 10, 2009

Editing WiiSCU source by illinialex24 at 5:22 PM (1,356 Views / 0 Likes) 16 replies

  1. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
  2. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    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.
     
  3. damysteryman

    Member damysteryman I am too busy IRL these days...

    Joined:
    Oct 4, 2007
    Messages:
    1,182
    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).
     
  4. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    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...).
     
  5. Det1re

    Member Det1re det1re.de

    Joined:
    Oct 28, 2008
    Messages:
    1,272
    Location:
    Germany
    Country:
    Germany
    wiiscu-0.22-det1re.rar

    Including IOS70 instead of IOS16 (which is only a stub) and has hardcoded version numbers for all IOS (not for channels).
    Source included.
     
  6. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    Gonna test that out, nand dump first though.
     
  7. Det1re

    Member Det1re det1re.de

    Joined:
    Oct 28, 2008
    Messages:
    1,272
    Location:
    Germany
    Country:
    Germany
    Good choice, as I didn't test it myself. ;x
     
  8. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    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.
     
  9. damysteryman

    Member damysteryman I am too busy IRL these days...

    Joined:
    Oct 4, 2007
    Messages:
    1,182
    Country:
    Antarctica
    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.
     
  10. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    Cool, this'll be useful for later use.

    Should be nice. Glad I'm learning abut this stuff, reinstalled Devkitpro, I mighta fucked up the install.
     
  11. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    Still getting a 487 Win32 error damnit.
     
  12. Det1re

    Member Det1re det1re.de

    Joined:
    Oct 28, 2008
    Messages:
    1,272
    Location:
    Germany
    Country:
    Germany
    Feel free do do anything you want to do with it... =)
     
  13. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    Shit, my college has a shitty network so I can't test this very well.

    Can anyone else test, I'll make a convenient package.
     
  14. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    Getting the package up and I've got a tester.
     
  15. XFlak

    Member XFlak Wiitired but still kicking

    Joined:
    Sep 12, 2009
    Messages:
    9,122
    Location:
    Ontario
    Country:
    Canada
    can someone post a working link for this? preferably megaupload but w/E works is fine
     
  16. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
  17. illinialex24
    OP

    Member illinialex24 GBAtemp Advanced Fan

    Joined:
    May 26, 2009
    Messages:
    968
    Location:
    The Midwest
    Country:
    United States
    The edited code was glitched, it causes the numbers to change so I'm just gonna do the IOS60 change so we can get .22 released.
     

Share This Page