// // SetupCameraEdgePopup::onCameraEdge from 0x140413ad0 to 0x140413bf9 (297 bytes) // // 5 xrefs: // > SetupCameraEdgePopup::init @ 0x140413544 // > SetupCameraEdgePopup::init @ 0x140413636 // > SetupCameraEdgePopup::init @ 0x140413723 // > SetupCameraEdgePopup::init @ 0x140413815 // > @ 0x1406d8d80 // // 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 SetupCameraEdgePopup::onCameraEdge(SetupCameraEdgePopup *a1, cocos2d::CCObject *a2) { int v3; // eax cocos2d::CCArray *m_directionToggles; // rcx bool v5; // bl CCMenuItemToggler *v6; // rax bool v7; // bl CCMenuItemToggler *v8; // rax bool v9; // bl CCMenuItemToggler *v10; // rax bool v11; // bl CCMenuItemToggler *v12; // rax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rcx unsigned int v15; // ebx struct cocos2d::CCObject *v16; // rax v3 = a2->getTag(a2); m_directionToggles = a1->m_directionToggles; a1->m_edgeDirection = v3; v5 = v3 == 1; v6 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(m_directionToggles, 0); CCMenuItemToggler::toggle(v6, v5); v7 = a1->m_edgeDirection == 2; v8 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_directionToggles, 1u); CCMenuItemToggler::toggle(v8, v7); v9 = a1->m_edgeDirection == 3; v10 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_directionToggles, 2u); CCMenuItemToggler::toggle(v10, v9); v11 = a1->m_edgeDirection == 4; v12 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_directionToggles, 3u); CCMenuItemToggler::toggle(v12, v11); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject[1].m_uID = a1->m_edgeDirection; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { v15 = 0; if ( cocos2d::CCArray::count(m_gameObjects) ) { do { v16 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v15++); v16[33].m_nTag = a1->m_edgeDirection; } while ( v15 < cocos2d::CCArray::count(a1->m_gameObjects) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source