// // GameObject::setOpacity from 0x44d04c to 0x44d20e (450 bytes) // // 5 xrefs: // > PlayerObject::setOpacity @ 0x4344e6 // > `non-virtual thunk to'GameObject::setOpacity @ 0x44d218 // > EffectGameObject::setOpacity @ 0x4e6198 // > LabelGameObject::setOpacity @ 0x4e6222 // > AnimatedGameObject::setOpacity @ 0x4e67c4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:35 +0000 // int __fastcall GameObject::setOpacity(GameObject *this, int a2) { float v3; // s14 float v4; // s16 float v5; // s17 int v6; // r5 int v7; // r0 float v8; // s15 unsigned int v9; // s17 int v10; // r0 _DWORD *v11; // r2 int *v12; // r6 int *v13; // r7 int v14; // r9 int v15; // t1 void (__fastcall *v16)(int, int); // r11 int v17; // r1 float v18; // s15 unsigned __int8 v20[4]; // [sp+0h] [bp-Ch] *((_BYTE *)this + 1148) = a2; v3 = *((float *)this + 239); if ( v3 > 0.0 ) a2 = (unsigned __int8)(unsigned int)(float)((float)a2 * v3); if ( *((_BYTE *)this + 658) ) a2 = 0; v4 = (float)a2; v5 = (float)a2 * *(float *)(*((_DWORD *)this + 240) + 8); v6 = (unsigned __int8)(unsigned int)v5; (*(void (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 832))(this, v6); if ( *((_WORD *)this + 374) == 2 && *((_BYTE *)this + 752) ) v5 = 0.0; *(_DWORD *)v20 = (unsigned int)v5; if ( (float)*((unsigned __int8 *)this + 269) != v5 ) { cocos2d::CCSprite::setOpacity(this, v20[0]); if ( !*((_BYTE *)this + 937) ) { if ( *((_WORD *)this + 374) == 2 ) v6 = 0; else v6 = v20[0]; } GameObject::setGlowOpacity(this, v6); if ( *((_BYTE *)this + 754) && !*((_BYTE *)this + 548) ) { v8 = *((float *)this + 136); if ( v8 > 0.0 ) v5 = v5 * v8; v9 = (unsigned int)v5; (*(void (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 836))(this, (unsigned __int8)v9); v10 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 244))(this); if ( v10 ) { v11 = *(_DWORD **)(v10 + 52); if ( *v11 ) { v12 = (int *)v11[3]; v13 = &v12[*v11 - 1]; while ( v12 <= v13 ) { v15 = *v12++; v14 = v15; if ( !v15 ) break; v16 = *(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 456); if ( (*(int (__fastcall **)(int))(*(_DWORD *)v14 + 32))(v14) == 997 ) v17 = v20[0]; else v17 = (unsigned __int8)v9; v16(v14, v17); } } } } } v7 = *((_DWORD *)this + 189); if ( v7 && !*((_BYTE *)this + 548) ) { v18 = v4 * *(float *)(*((_DWORD *)this + 241) + 8); if ( *((_WORD *)this + 375) == 2 && *((_BYTE *)this + 753) ) v18 = 0.0; (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 456))(v7, (unsigned __int8)(unsigned int)v18); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 189) + 552))( *((_DWORD *)this + 189), (unsigned __int8)(unsigned int)v18); } return (*(int (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)this + 828))(this, v20[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source