An offline mod to Waninkoko's FirmwareDowngrader

Discussion in 'Wii - Hacking' started by pcfree, May 2, 2009.

  1. pcfree
    OP

    Newcomer pcfree Advanced Member

    Joined:
    Mar 29, 2009
    Messages:
    59
    Country:
    Taiwan
    For those who have no direct Internet access or slow Internet access for their Wii, The following code may help you to run FD offline.
    Not tested yet. Carefully investigate the code before use.

    CODE#include
    #include
    .
    .
    .
    static char fatdev[]="sd";

    // Fat_mount() and Fat_Unmount() extracted and modded from Waninkoko's WAD Manager
    s32 Fat_Mount(void)
    {
    s32 ret;

    /* Initialize interface */
    ret = __io_wiisd.startup();
    if (!ret)
    return -1;

    /* Mount device */
    ret = fatMountSimple(fatdev, &__io_wiisd);
    if (!ret)
    return -1;

    return 0;
    }

    void Fat_Unmount(void)
    {
    /* Unmount device */
    fatUnmount(fatdev);

    /* Shutdown interface */
    __io_wiisd.shutdown();
    }

    s32 GetFileSize(FILE *fp)
    {
    s32 len;

    if(fseek(fp,0,SEEK_END) != 0)
    return -1;
    if((len=ftell(fp))
     

Share This Page