// // EditorUI::onTargetIDChange from 0x7c6620 to 0x7c6758 (312 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0xbd7e38 // > EditorUI::handleEditorAction @ 0xbd7e50 // > @ 0xaf288 // // 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 12:54:08 +0000 // __int64 __fastcall EditorUI::onTargetIDChange(EditorUI *this, int a2) { cocos2d::CCObject *v3; // x1 cocos2d::CCArray *v4; // x20 unsigned int v5; // w19 __int64 result; // x0 GameObject *v7; // x0 bool v8; // cf unsigned int v9; // w1 unsigned int v10; // w19 unsigned int v11; // w1 GameObject *v12; // x21 int v13; // w2 __int64 v14; // x22 cocos2d::CCString *v15; // x0 __int64 CString; // x0 v3 = *((cocos2d::CCObject **)this + 187); if ( v3 ) v4 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(*((cocos2d::CCArray **)this + 187), v3); else v4 = *((cocos2d::CCArray **)this + 112); v5 = 0; result = cocos2d::CCArray::count(v4); if ( (_DWORD)result ) { while ( 1 ) { v8 = v5 >= (unsigned int)cocos2d::CCArray::count(v4); v9 = v5++; if ( v8 ) break; v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(v4, v9); result = GameObject::isTrigger(v7); if ( !(_BYTE)result ) return result; } v10 = 0; while ( 1 ) { v8 = v10 >= (unsigned int)cocos2d::CCArray::count(v4); v11 = v10; result = (__int64)v4; ++v10; if ( v8 ) break; while ( 1 ) { v12 = (GameObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)result, v11); if ( !GameObject::isTrigger(v12) ) break; v13 = *((_DWORD *)v12 + 366); if ( v13 <= 0 ) break; EffectGameObject::setTargetID(v12, v13 + a2); v14 = (*(__int64 (__fastcall **)(GameObject *, __int64))(*(_QWORD *)v12 + 480LL))(v12, 999); if ( !v14 ) break; v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*((unsigned int *)v12 + 366)); CString = cocos2d::CCString::getCString(v15); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 928LL))(v14, CString); v8 = v10 >= (unsigned int)cocos2d::CCArray::count(v4); v11 = v10; result = (__int64)v4; ++v10; if ( v8 ) return result; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source