// // GameObject::saveActiveColors from 0x44f070 to 0x44f142 (210 bytes) // // 1 xrefs: // > EnhancedGameObject::saveActiveColors @ 0x44f146 // // 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 // int __fastcall GameObject::saveActiveColors(GameObject *this) { int SecondaryColorMode; // r0 int v3; // r3 int v4; // r3 int v5; // r3 GameManager *v6; // r0 int v7; // r3 int v8; // r0 int v9; // r5 int result; // r0 bool v11; // r3 int v12; // r3 *((_DWORD *)this + 197) = *((_DWORD *)this + 196); *((_DWORD *)this + 139) = GameObject::getMainColorMode(this); SecondaryColorMode = (int)GameObject::getSecondaryColorMode(this); v3 = *((_DWORD *)this + 139); if ( v3 > 1100 ) v4 = 1101; else v4 = v3 & ~(v3 >> 31); *((_DWORD *)this + 139) = v4; v5 = *((_DWORD *)this + 240); if ( SecondaryColorMode > 1100 ) v6 = (GameManager *)((char *)&stru_44C.st_name + 1); else v6 = (GameManager *)(SecondaryColorMode & ~(SecondaryColorMode >> 31)); *((_DWORD *)this + 140) = v6; *((_BYTE *)this + 564) = *(_BYTE *)(v5 + 32); v7 = *((_DWORD *)this + 241); if ( v7 ) LOBYTE(v7) = *(_BYTE *)(v7 + 32); *((_BYTE *)this + 565) = v7; v8 = GameManager::sharedState(v6); v9 = *(unsigned __int8 *)(v8 + 506); if ( !*(_BYTE *)(v8 + 506) ) { GameObject::setupColorSprite(this, *((_DWORD *)this + 139), 1); GameObject::setupColorSprite(this, *((_DWORD *)this + 140), v9); } if ( *((_BYTE *)this + 906) ) *((_BYTE *)this + 898) = 1; if ( *((_BYTE *)this + 907) ) *((_BYTE *)this + 899) = 1; if ( *((_BYTE *)this + 1050) ) *((_DWORD *)this + 196) = 7; result = GameObject::canRotateFree(this); v11 = *((_DWORD *)this + 196) == 7; *((_BYTE *)this + 1109) = v11; *((_BYTE *)this + 1110) = v11; v12 = *((unsigned __int8 *)this + 1114); *((_BYTE *)this + 736) = result; if ( v12 ) { if ( !*((_BYTE *)this + 549) ) *((_BYTE *)this + 863) = 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source