// // EditorUI::updateEditButtonColor from 0x70e7d0 to 0x70e8c8 (248 bytes) // // 4 xrefs: // > EditorUI::deactivateScaleControl @ 0x70e944 // > EditorUI::showTransformControl @ 0x70ea7c // > EditorUI::deactivateTransformControl @ 0x70eb72 // > EditorUI::activateScaleControl @ 0x70eee0 // // 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:57:42 +0000 // void __fastcall EditorUI::updateEditButtonColor(int a1, const char *a2, int a3) { int v3; // r7 cocos2d::CCString *v4; // r0 const char *CString; // r8 size_t v6; // r0 size_t v7; // r4 std::logic_error *exception; // r4 char *v9; // r3 unsigned int v10; // r0 char v11; // r6 int v12; // r4 _DWORD *v13; // r0 int v15; // [sp+8h] [bp-10h] BYREF size_t v16; // [sp+Ch] [bp-Ch] void *v17; // [sp+10h] [bp-8h] v3 = *(_DWORD *)(a1 + 608); if ( !v3 ) return; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a2); v15 = 0; v16 = 0; v17 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v4); v6 = strlen(CString); v7 = v6; if ( v6 > 0xFFFFFFEF ) { exception = (std::logic_error *)_cxa_allocate_exception(8u); std::logic_error::logic_error(exception, "basic_string"); *(_DWORD *)exception = &off_D1546C; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::length_error, (void (*)(void *))std::length_error::~length_error); } if ( v6 > 0xA ) { v10 = (v6 + 16) & 0xFFFFFFF0; v15 = v10 | 1; v16 = v7; v9 = (char *)operator new(v10); v17 = v9; LABEL_8: v9 = (char *)memcpy(v9, CString, v7); goto LABEL_9; } LOBYTE(v15) = 2 * v6; v9 = (char *)&v15 + 1; if ( v6 ) goto LABEL_8; LABEL_9: v9[v7] = 0; v11 = v15; v12 = cocos2d::CCDictionary::objectForKey(v3, &v15); if ( (v11 & 1) != 0 ) operator delete(v17); if ( v12 ) { v13 = (_DWORD *)(*(int (__fastcall **)(int))(*(_DWORD *)v12 + 536))(v12); ButtonSprite::setColor(v13, a3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source