// // EditorUI::copyObjectsDetailed from 0x381d18 to 0x381e22 (266 bytes) // // 1 xrefs: // > EditorUI::addObjectsToSmartTemplate @ 0x39c41c // // 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 // EditorUI *__fastcall EditorUI::copyObjectsDetailed(EditorUI *this, EditorUI *a2, cocos2d::CCArray *a3) { cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r6 _DWORD *v8; // r4 _DWORD *v9; // t1 const cocos2d::CCPoint *v10; // r0 int v11; // r0 cocos2d::CCObject **v13; // [sp+4h] [bp-30h] void (__fastcall *v14)(_DWORD *, _BYTE *); // [sp+8h] [bp-2Ch] cocos2d::CCPoint v15; // [sp+14h] [bp-20h] BYREF cocos2d::CCPoint v16; // [sp+1Ch] [bp-18h] BYREF _BYTE v17[8]; // [sp+24h] [bp-10h] BYREF qsort(a3->data->arr, a3->data->num, 4u, mIDSort); EditorUI::getGroupCenter(&v15, a2, a3, 0); sub_776584((int)this, (char *)&unk_939830); data = a3->data; if ( data->num ) { arr = data->arr; v13 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v13 ) { v9 = *arr++; v8 = v9; if ( !v9 ) break; if ( v8[221] != 749 ) { v10 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8); cocos2d::CCPoint::CCPoint(&v16, v10); v14 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v8 + 92); v11 = (*(int (__fastcall **)(_DWORD *))(*v8 + 96))(v8); cocos2d::CCPoint::operator-(v17, v11, &v15); v14(v8, v17); (*(void (__fastcall **)(_BYTE *, _DWORD *, LevelEditorLayer *))(*v8 + 688))(v17, v8, a2->m_editorLayer); (*(void (__fastcall **)(_DWORD *, cocos2d::CCPoint *))(*v8 + 92))(v8, &v16); sub_77441C(this, v17); sub_774544((int)this, ";"); sub_774008(v17); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source