// // SecretGame01Layer::onSelectButton from 0xa94fc8 to 0xa95094 (204 bytes) // // 3 xrefs: // > @ 0x85368 // > SecretGame01Layer::resetGame @ 0xa9440c // > @ 0x122c7f0 // // 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 SecretGame01Layer::onSelectButton(SecretGame01Layer *a1, cocos2d::CCObject *a2) { int v3; // w20 unsigned int m_selectedObject; // w21 CCMenuItemSpriteExtra *v5; // x21 cocos2d::CCArray *m_requiredObjects; // x0 unsigned int v7; // w20 v3 = a2->getTag(a2); m_selectedObject = a1->m_selectedObject; if ( m_selectedObject <= (unsigned int)cocos2d::CCArray::count(a1->m_requiredObjects) - 1 ) { v5 = (CCMenuItemSpriteExtra *)cocos2d::CCArray::objectAtIndex(a1->m_requiredObjects, a1->m_selectedObject); if ( v5->getTag(v5) != v3 ) goto LABEL_3; } else { v5 = nullptr; if ( v3 != -1 ) { LABEL_3: SecretGame01Layer::showGameOver(a1); return; } } m_requiredObjects = a1->m_requiredObjects; v7 = a1->m_selectedObject + 1; a1->m_selectedObject = v7; if ( v7 >= (unsigned int)cocos2d::CCArray::count(m_requiredObjects) ) SecretGame01Layer::showGameWon(a1); else SecretGame01Layer::didSelectCorrectObject(a1, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source