// // EditorUI::updateEditButtonColor from 0xc01d88 to 0xc01f20 (408 bytes) // // 5 xrefs: // > EditorUI::deactivateScaleControl @ 0xc01fa0 // > EditorUI::showTransformControl @ 0xc02198 // > EditorUI::deactivateTransformControl @ 0xc0231c // > EditorUI::activateScaleControl @ 0xc02878 // > @ 0x6fd78 // // 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 13:03:49 +0000 // __int64 __fastcall EditorUI::updateEditButtonColor(__int64 a1, const char *a2, __int64 a3) { __int64 v3; // x22 cocos2d::CCString *v4; // x0 const char *CString; // x24 size_t v6; // x0 size_t v7; // x19 unsigned __int64 v8; // x0 char *v9; // x3 __int64 v10; // x19 _QWORD *v11; // x0 std::logic_error *exception; // x19 __int64 v15; // [xsp+50h] [xbp+50h] BYREF size_t v16; // [xsp+58h] [xbp+58h] void *v17; // [xsp+60h] [xbp+60h] v3 = *(_QWORD *)(a1 + 816); if ( !v3 ) return _stack_chk_guard; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); v15 = 0; CString = (const char *)cocos2d::CCString::getCString(v4); v16 = 0; v17 = nullptr; v6 = strlen(CString); v7 = v6; if ( v6 > 0xFFFFFFFFFFFFFFEFLL ) { exception = (std::logic_error *)_cxa_allocate_exception(0x10u); std::logic_error::logic_error(exception, "basic_string"); *(_QWORD *)exception = off_1536D28; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::length_error, (void (*)(void *))std::logic_error::~logic_error); } if ( v6 <= 0x16 ) { LOBYTE(v15) = 2 * v6; v9 = (char *)&v15 + 1; if ( !v6 ) goto LABEL_6; } else { v8 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL; v15 = v8 | 1; v9 = (char *)operator new(v8); v17 = v9; v16 = v7; } v9 = (char *)memcpy(v9, CString, v7); LABEL_6: v9[v7] = 0; v10 = cocos2d::CCDictionary::objectForKey(v3, &v15); if ( (v15 & 1) != 0 ) operator delete(v17); if ( v10 ) { v11 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 1072LL))(v10); ButtonSprite::setColor(v11, a3); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source