// // CustomizeObjectLayer::onLiveEdit from 0x140141fa0 to 0x1401420a3 (259 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x140140d0c // > @ 0x140917324 // // 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:27:10 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall CustomizeObjectLayer::onLiveEdit(__int64 a1, __int64 a2) { unsigned int ActiveMode; // ebp __int64 v4; // rax __int64 v5; // rsi __int64 v6; // rcx __int64 v7; // rax unsigned int *v8; // rbx __int64 v9; // rax unsigned __int64 v10; // rbx unsigned __int64 i; // rdi void *v13; // [rsp+40h] [rbp+18h] LOBYTE(a2) = 1; ActiveMode = CustomizeObjectLayer::getActiveMode(a1, a2); CustomizeObjectLayer::onClose(a1, 0); v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v13 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } v5 = *(_QWORD *)(*(_QWORD *)(v4 + 568) + 14904LL); v6 = *(_QWORD *)(v5 + 1568); if ( v6 ) { *(_BYTE *)(v6 + 1141) = 0; GameObject::updateObjectEditorColor(); } else if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v5 + 944)) ) { v7 = *(_QWORD *)(v5 + 944); if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD *)v8 + 2); for ( i = v10 + 8 * (v9 - 1); v10 <= i; v10 += 8LL ) { if ( !*(_QWORD *)v10 ) break; *(_BYTE *)(*(_QWORD *)v10 + 1141LL) = 0; GameObject::updateObjectEditorColor(); } } } } return EditorUI::showLiveColorSelectForMode(v5, ActiveMode); }