// // CharacterColorPage::updateIconColors from 0x1001532cc to 0x100153408 (316 bytes) // // 3 xrefs: // > CharacterColorPage::init @ 0x100152e04 // > CharacterColorPage::toggleGlow @ 0x100153794 // > CharacterColorPage::onPlayerColor @ 0x100153c94 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 10:59:40 +0000 // __int64 __fastcall CharacterColorPage::updateIconColors(__int64 a1) { __int64 v2; // x0 char v3; // w22 __int64 v4; // x20 __int64 v5; // x0 __int64 v6; // x0 __int64 v7; // x20 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x20 __int64 v12; // x0 __int64 v13; // x0 __int64 result; // x0 __int64 v15; // x20 _BYTE *v16; // x21 __int64 v17; // x0 __int64 v18; // x0 __int16 v19; // [xsp+4h] [xbp-2Ch] BYREF char v20; // [xsp+6h] [xbp-2Ah] __int16 v21; // [xsp+8h] [xbp-28h] BYREF char v22; // [xsp+Ah] [xbp-26h] __int16 v23; // [xsp+Ch] [xbp-24h] BYREF char v24; // [xsp+Eh] [xbp-22h] v2 = GameManager::sharedState(a1); v3 = *(_BYTE *)(v2 + 912); v4 = GameManager::sharedState(v2); v5 = GameManager::sharedState(v4); v6 = GameManager::colorForIdx(v4, (unsigned int)(*(_DWORD *)(v5 + 812) - *(_DWORD *)(v5 + 816))); v23 = v6; v24 = BYTE2(v6); v7 = GameManager::sharedState(v6); v8 = GameManager::sharedState(v7); v9 = GameManager::colorForIdx(v7, (unsigned int)(*(_DWORD *)(v8 + 824) - *(_DWORD *)(v8 + 828))); v21 = v9; v22 = BYTE2(v9); v10 = GameManager::sharedState(v9); v11 = (unsigned int)(*(_DWORD *)(v10 + 836) - *(_DWORD *)(v10 + 840)); v12 = GameManager::sharedState(v10); v13 = GameManager::colorForIdx(v12, v11); v19 = v13; v20 = BYTE2(v13); result = sub_1002E757C(*(_QWORD *)(a1 + 672)); if ( (_DWORD)result ) { v15 = 0; do { v16 = (_BYTE *)sub_1002E75A0(*(_QWORD *)(a1 + 672), v15); (*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v16 + 960LL))(v16, &v23); v17 = SimplePlayer::setSecondColor(v16, &v21); v16[660] = v3; v18 = GameManager::sharedState(v17); if ( *(_DWORD *)(v18 + 836) >= *(_DWORD *)(v18 + 840) ) SimplePlayer::enableCustomGlowColor(v16, &v19); else SimplePlayer::disableCustomGlowColor(v16); SimplePlayer::updateColors(v16); v15 = (unsigned int)(v15 + 1); result = sub_1002E757C(*(_QWORD *)(a1 + 672)); } while ( (unsigned int)v15 < (unsigned int)result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source