// // SetupObjectOptionsPopup::onDisableObject from 0x10031a390 to 0x10031a4be (302 bytes) // // 1 xrefs: // > SetupObjectOptionsPopup::init @ 0x100318e19 // // 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 SetupObjectOptionsPopup::onDisableObject(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2) { GameObject *m_gameObject; // rdi cocos2d::CCArray *m_gameObjects; // r14 LevelEditorLayer *m_levelEditorLayer; // r15 unsigned int v6; // r12d __int64 v7; // r13 unsigned int v8; // r15d __int64 v9; // r12 a1->m_noTouch ^= 1u; m_gameObject = a1->m_gameObject; if ( m_gameObject ) m_gameObjects = (cocos2d::CCArray *)sub_10071FA80(m_gameObject); else m_gameObjects = a1->m_gameObjects; m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; if ( (unsigned int)sub_100720070(m_gameObjects) ) { if ( m_levelEditorLayer ) { v6 = 0; do { v7 = sub_1007200C0(m_gameObjects, v6); GJBaseGameLayer::removeObjectFromSection(m_levelEditorLayer, (GameObject *)v7); *(_BYTE *)(v7 + 1214) = a1->m_noTouch; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1792LL))(v7, *(unsigned int *)(v7 + 924)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1600LL))(v7); ((void (__fastcall *)(LevelEditorLayer *, __int64))m_levelEditorLayer->addToSection)(m_levelEditorLayer, v7); ++v6; } while ( v6 < (unsigned int)sub_100720070(m_gameObjects) ); } else { v8 = 0; do { v9 = sub_1007200C0(m_gameObjects, v8); *(_BYTE *)(v9 + 1214) = a1->m_noTouch; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1792LL))(v9, *(unsigned int *)(v9 + 924)); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1600LL))(v9); ++v8; } while ( v8 < (unsigned int)sub_100720070(m_gameObjects) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source