// // EditorUI::updateEditButtonColor from 0x689ee4 to 0x68a010 (300 bytes) // // 5 xrefs: // > EditorUI::deactivateScaleControl @ 0x6955b8 // > EditorUI::deactivateTransformControl @ 0x6969f4 // > EditorUI::activateScaleControl @ 0x6b4b44 // > EditorUI::activateTransformControl @ 0x6b65b0 // > @ 0x50280 // // 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 // // local variable allocation has failed, the output may be wrong! void EditorUI::updateEditButtonColor(EditorUI *a1, int a2, cocos2d::ccColor3B a3) { cocos2d::CCDictionary *m_editButtonDict; // x21 cocos2d::CCString *v4; // x0 char *CString; // x0 __int64 v6; // x20 char *v7; // x0 ButtonSprite *v8; // x0 unsigned int *v9; // x2 int v10; // w1 int v11; // [xsp+38h] [xbp+38h] std::string v12; // [xsp+50h] [xbp+50h] BYREF v11 = *(_DWORD *)&a3.r; m_editButtonDict = a1->m_editButtonDict; if ( m_editButtonDict ) { v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *(const char **)&a2); CString = (char *)cocos2d::CCString::getCString(v4); sub_D153B8((int)&v12, CString); v6 = cocos2d::CCDictionary::objectForKey(m_editButtonDict, &v12); v7 = (char *)v12.m_data.m_data - 24; if ( (__int64 *)v12.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)((char *)v12.m_data.m_data - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v12.m_data.m_data - 2); *((_DWORD *)v12.m_data.m_data - 2) = v10 - 1; } if ( v10 <= 0 ) operator delete(v7); } if ( v6 ) { v8 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6); ButtonSprite::setColor(v8, (cocos2d::ccColor3B)v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source