// // EditorUI::onPasteColor from 0x140114570 to 0x140114678 (264 bytes) // // 2 xrefs: // > EditorUI::init @ 0x1400e110c // > @ 0x1406c90f0 // // 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 // // Hidden C++ exception states: #wind=1 void EditorUI::onPasteColor(EditorUI *a1, cocos2d::CCObject *a2) { __int64 v3; // rbp cocos2d::CCArray *m_selectedObjects; // rax GameObject *m_selectedObject; // rbx cocos2d::ccArray *data; // rbx __int64 num; // rax GameObject **arr; // rbx GameObject **i; // rsi GameObject *v10; // rdi void *v11; // [rsp+40h] [rbp+8h] if ( a1->m_selectedObject || cocos2d::CCArray::count(a1->m_selectedObjects) ) { v3 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v11 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = qword_1406C2ED8; } m_selectedObjects = a1->m_selectedObjects; m_selectedObject = a1->m_selectedObject; if ( *(_QWORD *)(*(_QWORD *)(v3 + 528) + 14368LL) ) { if ( m_selectedObject ) { GameObject::duplicateColorMode(a1->m_selectedObject); m_selectedObject->m_updateParents = 1; } else if ( m_selectedObjects ) { data = m_selectedObjects->data; num = data->num; if ( (_DWORD)num ) { arr = (GameObject **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v10 = *arr; if ( !*arr ) break; GameObject::duplicateColorMode(*arr); v10->m_updateParents = 1; } } } } EditorUI::updateObjectInfoLabel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source