Address of real function ?

Discussion in 'Wii U - Hacking & Backup Loaders' started by ptitleray, Nov 14, 2015.

  1. ptitleray
    OP

    ptitleray Member

    Newcomer
    49
    85
    Dec 17, 2013
    France
    I'm on 4.1.0 firmware and i would like to know how to get the address of certain functions :glare:
    I recovered almost all addresses with the help of :
    - OSDynLoad_Acquire()
    - OSDynLoad_FindExport()
    but I can't retrieve the REAL address of :
    - FSGetStat()
    - MEMAllocFromDefaultHeapEx()
    and few others

    Can somebody help me ? :P
     
  2. Marionumber1

    Marionumber1 GBAtemp Maniac

    Member
    1,234
    3,933
    Nov 7, 2010
    United States
    MEMAllocFromDefaultHeapEx is actually a function pointer. You need to set isData (second arg of FindExport) to 1, and then it will give you the pointer. Dereferencing that pointer gets you the address of the function itself. FSGetStat() may work in a similar way.
     
    CosmoCortney and ptitleray like this.