#pragma once #include // see https://github.com/decaf-emu/decaf-emu/tree/43366a34e7b55ab9d19b2444aeb0ccd46ac77dea/src/libdecaf/src/cafe/loader struct LiImportTracking { uint32_t numExports; struct Export *exports; uint32_t tlsModuleIndex; struct LOADED_RPL *rpl; }; struct Export { uint32_t value; uint32_t name; }; struct RPLFileInfo_v4_2 { char field_0x0[88]; uint16_t tlsModuleIndex; char field_0x5a[6]; }; struct LOADED_RPL { char u1[88]; struct RPLFileInfo_v4_2 *fileInfoBuffer; char u2[20]; uint32_t loadStateFlags; uint32_t entrypoint; char u3[132]; uint32_t numFuncExports; Export *funcExports; uint32_t numDataExports; Export *dataExports; char u4[12]; }; #define FUNCTION_EXPORT_MASK 0x13370000 #define DATA_EXPORT_MASK 0x13380000