// // SetupCameraOffsetTrigger::onTargetMode from 0x100662ea0 to 0x100662f74 (212 bytes) // // 2 xrefs: // > SetupCameraOffsetTrigger::init @ 0x1006625e4 // > SetupCameraOffsetTrigger::init @ 0x1006626ec // // 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 SetupCameraOffsetTrigger::onTargetMode(SetupCameraOffsetTrigger *a1, cocos2d::CCObject *a2) { int m_targetMode; // r15d int v4; // ecx int v5; // eax EffectGameObject *m_gameObject; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v8; // r14d m_targetMode = a1->m_targetMode; v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v5 = 0; if ( m_targetMode != v4 ) v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); a1->m_targetMode = v5; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_moveTargetMode = v5; } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v8 = 0; do *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v8++) + 1512) = a1->m_targetMode; while ( v8 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } CCMenuItemToggler::toggle(a1->m_xOnlyToggler, a1->m_targetMode == 1); CCMenuItemToggler::toggle(a1->m_yOnlyToggler, a1->m_targetMode == 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source