mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(profile): add type information for CGxDevice functions
This commit is contained in:
parent
5a70c8290f
commit
34d16625b7
9 changed files with 250 additions and 129 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
static import_data_types() {
|
||||
apply_type(0x00408070, "void __stdcall func(float* minX, float* maxX, float* minY, float* maxY, float* minZ, float* maxZ)");
|
||||
apply_type(0x00409670, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x004804F0, "void __cdecl func(EvtContext* context, EVENTID id, void* handler, void* param, float priority)");
|
||||
apply_type(0x004806A0, "int32_t __cdecl func(EvtContext* context, EVENTID id, void *data, size_t bytes)");
|
||||
apply_type(0x004B5510, "int32_t __stdcall func(uint32_t width, uint32_t height)");
|
||||
|
|
@ -10,18 +11,78 @@ static import_data_types() {
|
|||
apply_type(0x004B78A0, "int32_t __usercall func@<eax>(char* ext@<eax>, char* filename, int32_t a3, MipBits** mipBits, uint32_t* width, uint32_t* height, PIXEL_FORMAT* texFormat, int32_t* isOpaque@<ecx>, uint32_t* alphaBits, PIXEL_FORMAT* dataFormat)");
|
||||
apply_type(0x004B8070, "int32_t __usercall func@<eax>(char* ext@<eax>, char* filename@<ebx>, int32_t a3, MipBits** mipBits, uint32_t* width, uint32_t* height, uint32_t* isOpaque, uint32_t* alphaBits, PIXEL_FORMAT* dataFormat)");
|
||||
apply_type(0x004B81D0, "MipBits* func(const char* filename, uint32_t* width, uint32_t* height, PIXEL_FORMAT* dataFormat, int32_t* isOpaque, CStatus* status, uint32_t* alphaBits, int32_t a8)");
|
||||
apply_type(0x00532AF0, "CGxCaps* __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x006160B0, "int32_t __usercall func@<eax>(uint32_t** image@<eax>, MipBits* mipImages@<ecx>, uint32_t width@<edx>, uint32_t height)");
|
||||
apply_type(0x00616800, "void __stdcall func(CURSORMODE mode)");
|
||||
apply_type(0x00681F60, "void __stdcall func(float minX, float maxX, float minY, float maxY, float minZ, float maxZ)");
|
||||
apply_type(0x00682CB0, "void __thiscall func(CGxDevice* this, int32_t (*windowProc)(void*, uint32_t, uintptr_t, intptr_t), CGxFormat* format)");
|
||||
apply_type(0x00682D00, "void __thiscall func(CGxDevice* this, uint32_t baseMipLevel)");
|
||||
apply_type(0x00682D20, "EGxApi __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00682D40, "int32_t __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00682D70, "CRect* __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00682DC0, "int32_t __thiscall func(CGxDevice* this, int32_t a2)");
|
||||
apply_type(0x00682E20, "int32_t __thiscall func(CGxDevice* this, int32_t a2)");
|
||||
apply_type(0x00682E50, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00682F40, "uint32_t __stdcall func(EGxPrim primType, uint32_t indexCount)");
|
||||
apply_type(0x00683080, "void __thiscall func(CGxDevice* this, uint32_t whichLight, int32_t enable)");
|
||||
apply_type(0x006830B0, "int32_t __thiscall func(CGxDevice* this, uint32_t app, uint32_t hw, uint32_t appDisables, uint32_t hwDisables, uint32_t flagPos, int32_t* enable)");
|
||||
apply_type(0x00683100, "int32_t __thiscall func(CGxDevice* this, EGxMasterEnables state)");
|
||||
apply_type(0x00683130, "int32_t __thiscall func(CGxDevice* this, CGxBuf* buf, void *data, uint32_t size, uint32_t offset)");
|
||||
apply_type(0x00683150, "uint8_t* __thiscall func(CGxDevice* this, CGxBuf* buf)");
|
||||
apply_type(0x00683180, "int32_t __thiscall func(CGxDevice* this, CGxBuf* buf, uint32_t size)");
|
||||
apply_type(0x006833A0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x006833E0, "void __thiscall func(CGxDevice* this, EGxShTarget target, uint32_t index, float* constants, uint32_t count)");
|
||||
apply_type(0x00683560, "uint8_t* __thiscall func(CGxDevice* this, EGxShTarget target)");
|
||||
apply_type(0x00683580, "void __thiscall func(CGxDevice* this, EGxShTarget target, uint32_t index, uint32_t count)");
|
||||
apply_type(0x006835E0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00683610, "void __stdcall func(EGxTexCommand command, uint32_t width, uint32_t height, uint32_t face, uint32_t level, void* userArg, uint32_t* texelStrideInBytes, void** texels)");
|
||||
apply_type(0x00683640, "void __thiscall func(CGxDevice* this, int32_t visible)");
|
||||
apply_type(0x00683650, "uint32_t* __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00683660, "void __thiscall func(CGxDevice* this, float depth)");
|
||||
apply_type(0x006840F0, "int32_t __thiscall func(CGxDevice* this, CGxFormat* format)");
|
||||
apply_type(0x00684190, "int32_t __thiscall func(CGxDevice* this, CGxGammaRamp* ramp)");
|
||||
apply_type(0x00684360, "void __thiscall func(CGxDevice* this, CRect* rect)");
|
||||
apply_type(0x006843B0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x006843E0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00684410, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00684440, "void __thiscall func(CGxDevice* this, uint32_t a2, C4Plane* plane)");
|
||||
apply_type(0x006847D0, "void __thiscall func(CGxDevice* this, uint32_t a2, CGxLight* light, C3Vector* pos)");
|
||||
apply_type(0x00684850, "void __thiscall func(CGxDevice* this, EGxPoolTarget target, uint32_t itemSize, uint32_t itemCount)");
|
||||
apply_type(0x006848A0, "void __thiscall func(CGxDevice* this, CGxTex* texId, CiRect* updateRect, int32_t immediate)");
|
||||
apply_type(0x00684900, "void __thiscall func(CGxDevice* this, CGxTex* texId)");
|
||||
apply_type(0x00684970, "int32_t __thiscall func(CGxDevice* this, CGxShader** shaders, EGxShTarget target, char* a4, char* a5, int32_t permutations)");
|
||||
apply_type(0x00684AD0, "void __thiscall func(CGxDevice* this, CGxFormat* format)");
|
||||
apply_type(0x00684B50, "void __thiscall func(CGxDevice* this, uint32_t x, uint32_t y)");
|
||||
apply_type(0x00684C20, "void __stdcall func(char* format, ...)");
|
||||
apply_type(0x00684C40, "void __stdcall func(CGxCaps* caps)");
|
||||
apply_type(0x00684D10, "void __stdcall func(CGxFormat* format)");
|
||||
apply_type(0x006853B0, "void __thiscall func(CGxDevice* this, DEVICERESTOREDCALLBACK fn)");
|
||||
apply_type(0x006853D0, "int32_t __thiscall func(CGxDevice* this, DEVICERESTOREDCALLBACK fn)");
|
||||
apply_type(0x00685460, "void __thiscall func(CGxDevice* this, TEXTURERECREATIONCALLBACK fn)");
|
||||
apply_type(0x00685480, "int32_t __thiscall func(CGxDevice* this, TEXTURERECREATIONCALLBACK fn)");
|
||||
apply_type(0x00685510, "void __thiscall func(CGxDevice* this, DISPLAYCHANGECALLBACK fn)");
|
||||
apply_type(0x00685530, "int32_t __thiscall func(CGxDevice* this, DISPLAYCHANGECALLBACK fn)");
|
||||
apply_type(0x00685970, "void __thiscall func(CGxDevice* this, EGxRenderState which)");
|
||||
apply_type(0x006859E0, "void __thiscall func(CGxDevice* this, EGxRenderState which)");
|
||||
apply_type(0x00685A70, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00685B50, "void __thiscall func(CGxDevice* this, int32_t force)");
|
||||
apply_type(0x00685C60, "void __thiscall func(CGxDevice* this, EGxTexTarget target, uint32_t width, uint32_t height, uint32_t depth, EGxTexFormat format, EGxTexFormat dataFormat, CGxTexFlags flags, void* userArg, void (*userFunc)(EGxTexCommand, uint32_t, uint32_t, uint32_t, uint32_t, void*, uint32_t*, void**), char* name, CGxTex** texId)");
|
||||
apply_type(0x00685EB0, "void __thiscall func(CGxDevice* this, EGxMasterEnables state, int32_t enable)");
|
||||
apply_type(0x00685F50, "void __thiscall func(CGxDevice* this, EGxRenderState which, void* value)");
|
||||
apply_type(0x00685FB0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00687660, "CGxBuf* __thiscall func(CGxDevice* this, CGxPool* pool, uint32_t itemSize, uint32_t itemCount, uint32_t index)");
|
||||
apply_type(0x006876D0, "CGxPool* __thiscall func(CGxDevice* this, EGxPoolTarget target, EGxPoolUsage usage, uint32_t size, EGxPoolHintBits hint, char* name)");
|
||||
apply_type(0x00687A90, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00688340, "void __thiscall func(CGxDevice* this, CGxPool* pool)");
|
||||
apply_type(0x00688690, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x006890C0, "void __thiscall func(CGxDevice* this)");
|
||||
apply_type(0x00689690, "void __thiscall func(CGxDevice *this, uint8_t __flags)");
|
||||
apply_type(0x006897C0, "void __thiscall func(CGxDevice* this, CGxShader**, EGxShTarget, char*, char*, int32_t)");
|
||||
apply_type(0x00689EF0, "CGxDevice* __stdcall func()");
|
||||
apply_type(0x0068BF20, "CGxDevice* __stdcall func()");
|
||||
apply_type(0x0068C220, "CGxDevice* __stdcall func()");
|
||||
apply_type(0x006A5A30, "void __thiscall func(CGxDeviceD3d* this)");
|
||||
apply_type(0x006A5EF0, "void __thiscall func(CGxDevice* this, CGxTex* texId, uint32_t* width, uint32_t* height, uint32_t* baseMip, uint32_t* mipCount)");
|
||||
apply_type(0x006AA3B0, "int32_t __thiscall func(CTgaFile* this)");
|
||||
apply_type(0x006AA3E0, "uint32_t __thiscall func(CTgaFile* this)");
|
||||
apply_type(0x006AA420, "void __thiscall func(CTgaFile* this, uint8_t* pAlphaData, uint8_t* pNoAlphaData, uint8_t* alpha)");
|
||||
|
|
|
|||
|
|
@ -2137,7 +2137,7 @@ static main() {
|
|||
set_name(0x00684B50, "CGxDevice__CursorUnlock");
|
||||
set_name(0x00684C20, "CGxDevice__Log");
|
||||
set_name(0x00684C40, "CGxDevice__Log_CGxCaps");
|
||||
set_name(0x00684D10, "CGxDevice__Log");
|
||||
set_name(0x00684D10, "CGxDevice__Log_CGxFormat");
|
||||
set_name(0x006853B0, "CGxDevice__AddDeviceRestoredCallback");
|
||||
set_name(0x006853D0, "CGxDevice__RemoveDeviceRestoredCallback");
|
||||
set_name(0x00685460, "CGxDevice__AddTextureRecreationCallback");
|
||||
|
|
@ -2150,13 +2150,15 @@ static main() {
|
|||
set_name(0x00685B50, "CGxDevice__IRsSync");
|
||||
set_name(0x00685C60, "CGxDevice__TexCreate");
|
||||
set_name(0x00685EB0, "CGxDevice__MasterEnableSet");
|
||||
set_name(0x00685F50, "CGxDevice__RsSet");
|
||||
set_name(0x00685F50, "CGxDevice__RsSet_pointer_to_void");
|
||||
set_name(0x00685FB0, "CGxDevice__RsPop");
|
||||
set_name(0x00687660, "CGxDevice__BufCreate");
|
||||
set_name(0x006876D0, "CGxDevice__PoolCreate");
|
||||
set_name(0x00687A90, "CGxDevice__ICursorDraw");
|
||||
set_name(0x00688340, "CGxDevice__PoolDestroy");
|
||||
set_name(0x00688690, "CGxDevice__CGxDevice");
|
||||
set_name(0x006890C0, "CGxDevice__destructor");
|
||||
set_name(0x00689690, "CGxDevice__scalar_deleting_destructor");
|
||||
set_name(0x006897C0, "CGxDevice__ShaderCreate");
|
||||
set_name(0x00689A50, "CGxShader__Valid");
|
||||
set_name(0x00689EF0, "CGxDevice__NewD3d");
|
||||
|
|
@ -6990,6 +6992,10 @@ static main() {
|
|||
set_func_end(0x00688340, 0x00688372);
|
||||
set_func_start(0x00688690, 0x00688690);
|
||||
set_func_end(0x00688690, 0x0068903F);
|
||||
set_func_start(0x006890C0, 0x006890C0);
|
||||
set_func_end(0x006890C0, 0x00689460);
|
||||
set_func_start(0x00689690, 0x00689690);
|
||||
set_func_end(0x00689690, 0x006896BB);
|
||||
set_func_start(0x006897C0, 0x006897C0);
|
||||
set_func_end(0x006897C0, 0x00689A49);
|
||||
set_func_start(0x00689A50, 0x00689A50);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue