// // EditorPauseLayer::uncheckAllPortals from 0x1400dca10 to 0x1400dcaf0 (224 bytes) // // 4 xrefs: // > EditorPauseLayer::customSetup @ 0x1400daaa8 // > @ 0x14066e04c // > @ 0x14066e080 // > @ 0x1406c8904 // // 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 EditorPauseLayer::uncheckAllPortals(EditorPauseLayer *a1, cocos2d::CCObject *a2) { unsigned int v3; // ebx cocos2d::CCArray *m_objects; // rsi struct cocos2d::CCObject *v5; // rax struct cocos2d::CCObject *v6; // rdi cocos2d::CCObjectType m_eObjType; // ecx if ( !a1->m_saved ) { v3 = 0; m_objects = a1->m_editorLayer->m_objects; if ( cocos2d::CCArray::count(m_objects) ) { do { v5 = cocos2d::CCArray::objectAtIndex(m_objects, v3); v6 = v5; m_eObjType = v5[18].m_eObjType; if ( m_eObjType == 660 || m_eObjType == GameObjectObjectType || m_eObjType == (MenuLayerObjectType|0x20) || m_eObjType == (MenuLayerObjectType|0x60) || m_eObjType == 1331 || m_eObjType == 1933 ) { if ( LOBYTE(v5[31].m_uOrderOfArrival) ) { cocos2d::CCArray::removeObject(a1->m_editorLayer->m_drawGridLayer->m_guideObjects, v5, 1); LOBYTE(v6[31].m_uOrderOfArrival) = 0; } } ++v3; } while ( v3 < cocos2d::CCArray::count(m_objects) ); } } }