// // EditorUI::onTargetIDChange from 0x1401beea0 to 0x1401bf00a (362 bytes) // // 5 xrefs: // > EditorUI::handleEditorAction @ 0x1401c36ca // > EditorUI::handleEditorAction @ 0x1401c36e8 // > @ 0x1408a24d4 // > @ 0x1408a2510 // > @ 0x14091a540 // // This function is hookable on this platform (idp: pc, 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 11:28:02 +0000 // unsigned int __fastcall EditorUI::onTargetIDChange(__int64 a1, int a2) { cocos2d::CCArray *v3; // rbx unsigned int result; // eax unsigned int v5; // edi struct cocos2d::CCObject *v6; // rax unsigned int v7; // edi struct cocos2d::CCObject *v8; // rsi int v9; // eax int v10; // ecx __int64 v11; // rax __int64 v12; // rbp cocos2d::CCString *v13; // rax const char *CString; // rax if ( *(_QWORD *)(a1 + 1568) ) v3 = cocos2d::CCArray::createWithObject(*(struct cocos2d::CCObject **)(a1 + 1568)); else v3 = *(cocos2d::CCArray **)(a1 + 944); result = cocos2d::CCArray::count(v3); if ( result ) { v5 = 0; if ( cocos2d::CCArray::count(v3) ) { while ( 1 ) { v6 = cocos2d::CCArray::objectAtIndex(v3, v5); result = GameObject::isTrigger(v6); if ( !(_BYTE)result ) break; if ( ++v5 >= cocos2d::CCArray::count(v3) ) goto LABEL_8; } } else { LABEL_8: v7 = 0; result = cocos2d::CCArray::count(v3); if ( result ) { do { v8 = cocos2d::CCArray::objectAtIndex(v3, v7); if ( (unsigned __int8)GameObject::isTrigger(v8) ) { v9 = *((_DWORD *)v8 + 370); if ( v9 > 0 ) { v10 = v9 + a2; v11 = *(_QWORD *)v8; if ( v10 < 0 ) v10 = 0; if ( v10 > 9999 ) v10 = 9999; *((_DWORD *)v8 + 370) = v10; v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *, __int64))(v11 + 472))(v8, 999); if ( v12 ) { v13 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *((unsigned int *)v8 + 370)); CString = cocos2d::CCString::getCString(v13); (**(void (__fastcall ***)(__int64, const char *))(v12 + 360))(v12 + 360, CString); } } } ++v7; result = cocos2d::CCArray::count(v3); } while ( v7 < result ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source