// // GJBaseGameLayer::restoreAllUIObjects from 0x1001f33ec to 0x1001f3514 (296 bytes) // // 1 xrefs: // > LevelEditorLayer::onStopPlaytest @ 0x100363250 // // 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 // void __fastcall GJBaseGameLayer::restoreAllUIObjects(GJBaseGameLayer *a1) { cocos2d::CCArray *m_uiObjects; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCObject **arr; // x22 unsigned __int64 v6; // x23 cocos2d::CCObject *v7; // x21 __int64 v8; // x0 float v9; // s0 unsigned int m_uReference; // [xsp+0h] [xbp-50h] BYREF char v11; // [xsp+7h] [xbp-49h] BYREF int *p_m_uReference; // [xsp+8h] [xbp-48h] BYREF m_uiObjects = a1->m_uiObjects; if ( m_uiObjects ) { data = m_uiObjects->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; v6 = (unsigned __int64)&arr[num - 1]; do { v7 = *arr; if ( !*arr ) break; m_uReference = v7[16].m_uReference; p_m_uReference = (int *)&m_uReference; v8 = sub_10020C7CC(&a1->m_uiObjectPositions, &m_uReference, &unk_10063A31C, &p_m_uReference, &v11); v9 = sub_1000229B8((__int64 *)&p_m_uReference, (__int64 *)(v8 + 20)); ((void (__fastcall *)(cocos2d::CCObject *, int **, float))v7->__vftable[16].setTag)(v7, &p_m_uReference, v9); ((void (__fastcall *)(cocos2d::CCObject *, __int64))v7->__vftable[16].~CCObject_0)(v7, 1); v7[11].m_nLuaID = 0; BYTE1(v7[24].__vftable) = 0; ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCObject *))a1->addToSection)(a1, v7); cocos2d::CCDictionary::setObject(a1->m_objectsToDeactivate, v7, v7[16].m_uReference); BYTE2(v7[17].m_nZOrder) = 1; ++arr; } while ( (unsigned __int64)arr <= v6 ); m_uiObjects = a1->m_uiObjects; } } sub_10024A45C(m_uiObjects); sub_100018054(&a1->m_uiObjectPositions.__table_.__bucket_list_.__ptr_.__value_); a1->m_calcCollisionBlockObjects2.__end_ = a1->m_calcCollisionBlockObjects2.__begin_; a1->m_calcCollisionBlockObjects2Size = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source