WiiLauncher v0.2 easter day release

Discussion in 'Wii U - Hacking & Backup Loaders' started by conanac, Apr 20, 2014.

  1. conanac
    OP

    conanac Be an Angel

    Member
    256
    105
    Sep 13, 2009
    United States
    I managed to find some time during a couple of weekends to use libcurl for regaining the ability to download cheat codes from geckocodes.org website. Since it is release on the easter day, I think I need to offer an easter egg in this version (reusing the code from Andy Sloane, a past winner of the 2006 international obfuscated c code contest). The video below (not in good quality) shows that Homer Simpson easter egg, and the examples of downloading cheat codes.

    You could find more information about this app on either wiibrew site or googlecode site

    Cheers.

     
  2. master801

    master801 GBAtemp Fan

    Member
    352
    85
    Feb 24, 2011
    United States
    So trippy....
     
  3. c4p0

    c4p0 GBAtemp Regular

    Member
    104
    54
    Dec 22, 2013
    United States
    chilling with r2
    This question may be answered easily but can you use codes on games from your USB hard drive or just games from the actual disc drive?
     
  4. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,302
    8,765
    Oct 27, 2002
    France
    Engine room, learning
    Thanks for trying libcurl with geckocode.
    I found libcurl when trying to add 302 redirect to USBGX, but I didn't want to add a new lib in USBGX for 302 error only. I guess it's also useful for geckocode.
    I'm still wondering what's detected by cloudlflare which makes libcurl working but not the older method.

    The sent header is different?
    or Is it the cookie presence? (though, on first connexion there's no cookie stored yet. The server sends it after you request the URL so you shouldn't need to retry the same URL to download the file, right? there's no 302 redirect to tell to automatically retry the URL)


    I'll do some tests.
    Thanks.

    Edit:
    Is Cyassl required for curl too?

    PS: Nice ascii animation :grog:
    I miss intros in apps
     
  5. TheChield

    TheChield Ugly Troll

    Member
    210
    29
    Jul 10, 2013
    France
    Nice job !
    I tried to compile it but libcurl is missing and wiibrew seems to be offline...
    Sloane.c gives a lots of warnings, very nice obfuscation too.
     
  6. conanac
    OP

    conanac Be an Angel

    Member
    256
    105
    Sep 13, 2009
    United States
    I have not released a version that could be used for loading the games from USB hard-drive (e.g. in SNEEK environment). Currently, it is similar to Gecko-OS which mainly be used with retail discs and channels.

    I just used the default setting (following WiiBrowser) and it worked ok for me so I have not tried different ways (which could be more efficient, etc). When I compiled it, I think it asked for cyassl so I included it in the linker (and I used/copied the compiled library files from WiiBrowser).

    I forgot to add *.a in the global setting of my svn so they did not get uploaded. They are in the repository now in case you want to try again.
     
  7. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,302
    8,765
    Oct 27, 2002
    France
    Engine room, learning
    I tried to add libcurl to usbloadergx, but it conflicts with other libraries already in use (sockaddr already defined in libogc/network.h, etc.)
    That will not be easy to fix for me. I'll use another way to bypass cloudflare and share it if it works.

    Thanks for your homebrew.
     
  8. TheChield

    TheChield Ugly Troll

    Member
    210
    29
    Jul 10, 2013
    France
    Works fine now !
    Did you try to remove the "#include "network.h" "clean and rebuild ? (This should be done everywhere the line can be found)
    There are no reasons of a conflict if you never include network.h.
     
  9. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,302
    8,765
    Oct 27, 2002
    France
    Engine room, learning
    network.h is required for other functions the loader is using, and curl require sys/socket.h which use the same struct name defined in libogc/lib/network.h
    If I remove network.h I will have to rewrite all sources using network functions.
    I would like to fix only the geckocodes download, other things are working fine. I'm trying to figure out the difference with curl, but it's currently a dead-end.

    I added support for cookies but it didn't help.
    I tried different header and user agent.
    I don't understand which "browser signature" they can see but the http_header.
    maybe socket or packet size, what's left is sniffing TCP packets from both homebrew.