// // GameObject::colorForMode from 0x44eef0 to 0x44ef8e (158 bytes) // // 8 xrefs: // > PlayLayer::manualUpdateObjectColors @ 0x3ff464 // > PlayLayer::manualUpdateObjectColors @ 0x3ff47c // > PlayLayer::updateVisibility @ 0x406dc2 // > PlayLayer::updateVisibility @ 0x406e7a // > GameObject::updateMainColor @ 0x44efa4 // > GameObject::updateMainColorOnly @ 0x44efd8 // > GameObject::updateSecondaryColor @ 0x44f00a // > GameObject::updateSecondaryColorOnly @ 0x44f040 // // 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:36 +0000 // unsigned __int8 *__fastcall GameObject::colorForMode(GameObject *this, int a2, int a3) { unsigned __int8 *v5; // r5 __int16 *ActiveColorForMode; // r0 char v7; // r3 int v8; // r2 int v9; // r0 int v10; // r3 int v11; // r0 v5 = (unsigned __int8 *)this + 537; if ( a2 <= 0 ) { v7 = -1; *(_WORD *)((char *)this + 537) = -1; } else { ActiveColorForMode = GameObject::getActiveColorForMode(this, a2, a3); *(_WORD *)((char *)this + 537) = *ActiveColorForMode; v7 = *((_BYTE *)ActiveColorForMode + 2); } v5[2] = v7; if ( *((__int16 *)this + 514) > 0 ) { if ( a3 ) { v8 = *((unsigned __int8 *)this + 902) ^ 1; } else { if ( *((_DWORD *)this + 140) == 1012 ) goto LABEL_11; v8 = 0; } v9 = GameObject::groupColor((int)this, (int)v5, v8); *(_WORD *)((char *)this + 537) = *(_WORD *)v9; v5[2] = *(_BYTE *)(v9 + 2); } if ( a3 ) { if ( !*((_BYTE *)this + 564) ) return v5; v10 = *((_DWORD *)this + 240); goto LABEL_13; } LABEL_11: if ( *((_BYTE *)this + 565) ) { v10 = *((_DWORD *)this + 241); LABEL_13: v11 = GameToolbox::transformColor( v5, *(float *)(v10 + 16), *(float *)(v10 + 20), *(float *)(v10 + 24), *(_DWORD *)(v10 + 28)); *(_WORD *)((char *)this + 537) = v11; *((_BYTE *)this + 539) = BYTE2(v11); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source