Hacking An offline mod to Waninkoko's FirmwareDowngrader

pcfree

Well-Known Member
Newcomer
Joined
Mar 29, 2009
Messages
59
Trophies
0
Website
Visit site
XP
15
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))
 

Site & Scene News

General chit-chat
Help Users
    IanSkinner1982 @ IanSkinner1982: Thank you.