// // SetupObjectOptionsPopup::onDisableObject from 0x974afc to 0x974c14 (280 bytes) // // 3 xrefs: // > @ 0x64638 // > SetupObjectOptionsPopup::init @ 0x97aca4 // > @ 0x122b3d0 // // 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 SetupObjectOptionsPopup::onDisableObject(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2) { _BOOL4 m_noTouch; // w1 GameObject *m_gameObject; // x0 cocos2d::CCObject *v5; // x1 cocos2d::CCArray *m_gameObjects; // x22 LevelEditorLayer *m_levelEditorLayer; // x21 unsigned int v8; // w20 bool v9; // cf unsigned int v10; // w1 cocos2d::CCArray *i; // x0 __int64 v12; // x0 GameObject *v13; // x19 __int64 m_savedObjectType; // x1 void (__fastcall *setType)(GameObject *__hidden, GameObjectType); // x2 __int64 v16; // x1 void (__fastcall *v17)(__int64, __int64); // x2 m_noTouch = a1->m_noTouch; m_gameObject = a1->m_gameObject; v5 = (cocos2d::CCObject *)!m_noTouch; a1->m_noTouch = (char)v5; if ( m_gameObject ) m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)m_gameObject, v5); else m_gameObjects = a1->m_gameObjects; m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; v8 = 0; v9 = (unsigned int)cocos2d::CCArray::count(m_gameObjects) == 0; v10 = 0; for ( i = m_gameObjects; !v9; i = m_gameObjects ) { v12 = cocos2d::CCArray::objectAtIndex(i, v10); v13 = (GameObject *)v12; ++v8; if ( m_levelEditorLayer ) { GJBaseGameLayer::removeObjectFromSection(m_levelEditorLayer, (GameObject *)v12); m_savedObjectType = (unsigned int)v13->m_savedObjectType; setType = v13->setType; v13->m_isNoTouch = a1->m_noTouch; setType(v13, (GameObjectType)m_savedObjectType); v13->saveActiveColors(v13); m_levelEditorLayer->addToSection(m_levelEditorLayer, v13); } else { v16 = *(unsigned int *)(v12 + 908); v17 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 1792LL); *(_BYTE *)(v12 + 1198) = a1->m_noTouch; v17(v12, v16); v13->saveActiveColors(v13); } v9 = v8 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects); v10 = v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source