// // SecretGame01Layer::onSelectButton from 0x10047fe70 to 0x10047ff38 (200 bytes) // // 1 xrefs: // > SecretGame01Layer::resetGame @ 0x10047f54f // // 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 SecretGame01Layer::onSelectButton(SecretGame01Layer *a1, cocos2d::CCObject *a2) { int v2; // r14d unsigned int m_selectedObject; // r15d CCMenuItemSpriteExtra *v4; // r15 unsigned int v5; // r14d v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); m_selectedObject = a1->m_selectedObject; if ( m_selectedObject <= (unsigned int)sub_100720070(a1->m_requiredObjects) - 1 ) { v4 = (CCMenuItemSpriteExtra *)sub_1007200C0(a1->m_requiredObjects, (unsigned int)a1->m_selectedObject); if ( v2 != ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *))v4->getTag)(v4) ) goto LABEL_3; } else { v4 = nullptr; if ( v2 != -1 ) { LABEL_3: a1->m_gameDifficulty = 0; SecretGame01Layer::scaleOutGame(a1, 0); return; } } v5 = a1->m_selectedObject + 1; a1->m_selectedObject = v5; if ( v5 >= (unsigned int)sub_100720070(a1->m_requiredObjects) ) { ++a1->m_gameDifficulty; SecretGame01Layer::scaleOutGame(a1, 1); } else { SecretGame01Layer::didSelectCorrectObject(a1, v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source