// // SetupTouchTogglePopup::determineStartValues from 0x95a888 to 0x95a9c0 (312 bytes) // // 2 xrefs: // > @ 0x2b188 // > @ 0x11bb200 // // 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 SetupTouchTogglePopup::determineStartValues(SetupTouchTogglePopup *a1) { EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x21 unsigned int v4; // w20 __int64 v5; // x0 int m_groupID; // w1 int m_toggleMode; // w1 int m_playerMode; // w1 int v9; // w0 SetupTriggerPopup::determineStartValues(a1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } if ( m_gameObjects ) { if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { a1->m_groupID = -1; v4 = 0; a1->m_toggleMode = -1; a1->m_playerMode = -1; a1->m_holdMode = 1; a1->m_dualMode = 1; while ( v4 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); if ( !*(_BYTE *)(v5 + 1622) ) a1->m_holdMode = 0; if ( !*(_BYTE *)(v5 + 1632) ) a1->m_dualMode = 0; m_groupID = a1->m_groupID; if ( m_groupID == -1 ) { a1->m_groupID = *(_DWORD *)(v5 + 1448); } else if ( m_groupID != *(_DWORD *)(v5 + 1448) ) { a1->m_groupID = 0; } m_toggleMode = a1->m_toggleMode; if ( m_toggleMode == -1 ) { a1->m_toggleMode = *(_DWORD *)(v5 + 1624); } else if ( m_toggleMode != *(_DWORD *)(v5 + 1624) ) { a1->m_toggleMode = 0; } m_playerMode = a1->m_playerMode; v9 = *(_DWORD *)(v5 + 1628); if ( m_playerMode == -1 ) { a1->m_playerMode = v9; ++v4; } else { if ( m_playerMode != v9 ) a1->m_playerMode = 0; ++v4; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source