// // SetupTouchTogglePopup::determineStartValues from 0x4fa22a to 0x4fa2f4 (202 bytes) // // 0 xrefs: // // 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) { cocos2d::CCArray *v2; // r0 cocos2d::CCArray *m_gameObjects; // r6 unsigned int v4; // r5 int v5; // r0 int m_groupID; // r2 int v7; // r3 int m_toggleMode; // r2 int v9; // r3 int m_playerMode; // r2 int v11; // r3 SetupTriggerPopup::determineStartValues(a1); if ( a1->m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { v4 = 0; a1->m_groupID = -1; a1->m_holdMode = 1; a1->m_dualMode = 1; a1->m_toggleMode = -1; a1->m_playerMode = -1; while ( v4 < cocos2d::CCArray::count(m_gameObjects) ) { v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); if ( !*(_BYTE *)(v5 + 1450) ) a1->m_holdMode = 0; if ( !*(_BYTE *)(v5 + 1460) ) a1->m_dualMode = 0; m_groupID = a1->m_groupID; v7 = *(_DWORD *)(v5 + 1276); if ( m_groupID == -1 ) { a1->m_groupID = v7; } else if ( m_groupID != v7 ) { a1->m_groupID = 0; } m_toggleMode = a1->m_toggleMode; v9 = *(_DWORD *)(v5 + 1452); if ( m_toggleMode == -1 ) { a1->m_toggleMode = v9; } else if ( m_toggleMode != v9 ) { a1->m_toggleMode = 0; } m_playerMode = a1->m_playerMode; v11 = *(_DWORD *)(v5 + 1456); if ( m_playerMode == -1 ) { a1->m_playerMode = v11; } else if ( m_playerMode != v11 ) { a1->m_playerMode = 0; } ++v4; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source