// // SetupObjectOptionsPopup::onDisableObject from 0x508aa0 to 0x508b22 (130 bytes) // // 0 xrefs: // // 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) { GameObject *m_gameObject; // r0 cocos2d::CCArray *m_gameObjects; // r8 unsigned int v5; // r7 LevelEditorLayer *m_levelEditorLayer; // r5 int v7; // r4 int v8; // r1 a1->m_noTouch ^= 1u; m_gameObject = a1->m_gameObject; if ( m_gameObject ) m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)m_gameObject, a2); else m_gameObjects = a1->m_gameObjects; v5 = 0; m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; while ( v5 < cocos2d::CCArray::count(m_gameObjects) ) { v7 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5); if ( m_levelEditorLayer ) GJBaseGameLayer::removeObjectFromSection(m_levelEditorLayer, (GameObject *)v7); v8 = *(_DWORD *)(v7 + 780); *(_BYTE *)(v7 + 1042) = a1->m_noTouch; (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 896))(v7, v8); (*(void (__fastcall **)(int))(*(_DWORD *)v7 + 800))(v7); if ( m_levelEditorLayer ) m_levelEditorLayer->addToSection(m_levelEditorLayer, (GameObject *)v7); ++v5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source