Starpatch compile problem

Discussion in 'Wii - Hacking' started by PhyniX, Nov 4, 2009.

  1. PhyniX
    OP

    PhyniX Advanced Member

    Newcomer
    94
    0
    Mar 29, 2009
    Gambia, The
    hello
    i want compile the tool Stapatch 4.2.4
    this is the error:

    main.c
    c:/devkitPro/examples/PAL453/source/main.c: In function 'load_menu':
    c:/devkitPro/examples/PAL453/source/main.c:57: warning: 'fs' is used uninitialized in this function
    linking ... PAL453.elf
    output ... PAL453.dol

    i can't start this tool
    i have follow error ISFS Get FileStats Error -101

    source code:
    fstats *fs;
    ret = ISFS_GetFileStats(fd,fs);
     
  2. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    I believe the problem is you need to allocate memory to fs before calling ISFS_GetFileStats. I dunno what that means or how to do it, but thats what WiiPower said on the wiibrew forums when someone else had this same problem.
     
  3. PhyniX
    OP

    PhyniX Advanced Member

    Newcomer
    94
    0
    Mar 29, 2009
    Gambia, The
    Thanks the idea wars good
    I have change it

    fstats *fs = fs;
     
  4. SifJar

    SifJar Not a pirate

    Member
    6,022
    892
    Apr 4, 2009
    Glad I helped. May I ask what modifications you have made to StartPatch? are you going to be releasing your version soon?
     
  5. Thomas83Lin

    Thomas83Lin Retro Gamer

    Member
    1,560
    426
    Jul 22, 2009
    United States