// // GameObject::getActiveColorForMode from 0x1005cae50 to 0x1005caf33 (227 bytes) // // 2 xrefs: // > PlayLayer::addObject @ 0x1000b20f8 // > PlayLayer::addObject @ 0x1000b2114 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // const cocos2d::ccColor3B *__fastcall GameObject::getActiveColorForMode(GameObject *a1, int a2, bool a3) { const cocos2d::ccColor3B *result; // rax GJEffectManager *m_goEffectManager; // r14 int v5; // esi GameObject *v6; // r15 unsigned __int16 *v7; // rax cocos2d::ccHSVValue v8; // 0:xmm0_8.8,8:rdx.8 result = (const cocos2d::ccColor3B *)&unk_10081F483; if ( a2 <= 1010 ) { if ( !a2 ) return result; if ( a2 == 1010 ) return (const cocos2d::ccColor3B *)&unk_10081F480; LABEL_9: if ( a3 ) return &a1->m_mainActionSprite->m_copyColor; else return &a1->m_detailActionSprite->m_copyColor; } if ( a2 == 1011 ) return result; if ( a2 != 1012 ) goto LABEL_9; m_goEffectManager = a1->m_goEffectManager; if ( a3 ) { v5 = *(unsigned __int16 *)&a1->m_mainActionSprite->m_copyColor.r | (a1->m_mainActionSprite->m_copyColor.b << 16); *(_QWORD *)&v8.h = 0x3F26666600000000LL; v6 = a1; } else { v6 = a1; v7 = (unsigned __int16 *)((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); v5 = *v7 | (*((unsigned __int8 *)v7 + 2) << 16); *(_QWORD *)&v8.h = 0x3F26666600000000LL; } *(_QWORD *)&v8.v = 0x1003E19999ALL; v6->m_groupColor = GJEffectManager::colorForEffect(m_goEffectManager, (cocos2d::ccColor3B)v5, v8); return &v6->m_groupColor; }
GD Web Decomp Icon

GD Web Decomp

Raw Source