// // MoreOptionsLayer::goToPage from 0x4231dc to 0x4233e2 (518 bytes) // // 3 xrefs: // > MoreOptionsLayer::init @ 0x4242c6 // > MoreOptionsLayer::onNextPage @ 0x424312 // > MoreOptionsLayer::onPrevPage @ 0x42431c // // 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 MoreOptionsLayer::goToPage(MoreOptionsLayer *a1, int a2) { int m_pageCount; // r6 int m_page; // r1 cocos2d::CCDictionary *m_variables; // r7 char *v6; // r0 cocos2d::CCArray *v7; // r10 cocos2d::CCDictionary *v8; // r7 char *v9; // r0 int v10; // r7 unsigned int i; // r7 int v12; // r0 cocos2d::CCDictionary *v13; // r7 char *v14; // r0 cocos2d::CCArray *v15; // r10 cocos2d::CCDictionary *v16; // r7 char *v17; // r0 int v18; // r7 unsigned int j; // r7 int v20; // r0 CCMenuItemSpriteExtra *m_leftBtn; // r0 CCTextInputNode *m_offsetInput; // r6 void (__fastcall *setTouchEnabled)(cocos2d::CCLayer *__hidden, bool); // r7 int v24; // r0 char *v25; // r1 std::string v26; // [sp+8h] [bp-8h] BYREF if ( a2 > a1->m_pageCount ) { m_pageCount = 0; } else { m_pageCount = a2 & ~(a2 >> 31); if ( a2 < 0 ) m_pageCount = a1->m_pageCount; } m_page = a1->m_page; if ( m_page != m_pageCount ) { m_variables = a1->m_variables; v6 = (char *)MoreOptionsLayer::objectKey(a1, m_page); sub_776584((int)&v26, v6); v7 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_variables, &v26); sub_774008(&v26); if ( v7 ) { for ( i = 0; i < cocos2d::CCArray::count(v7); ++i ) { v12 = cocos2d::CCArray::objectAtIndex(v7, i); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v12 + 164))(v12, 0); } } v8 = a1->m_variables; v9 = (char *)MoreOptionsLayer::layerKey(a1, a1->m_page); sub_776584((int)&v26, v9); v10 = cocos2d::CCDictionary::objectForKey(v8, &v26); sub_774008(&v26); if ( v10 ) (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v10 + 164))(v10, 0); v13 = a1->m_variables; v14 = (char *)MoreOptionsLayer::objectKey(a1, m_pageCount); sub_776584((int)&v26, v14); v15 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v13, &v26); sub_774008(&v26); if ( v15 ) { for ( j = 0; j < cocos2d::CCArray::count(v15); ++j ) { v20 = cocos2d::CCArray::objectAtIndex(v15, j); (*(void (__fastcall **)(int, int))(*(_DWORD *)v20 + 164))(v20, 1); } } v16 = a1->m_variables; v17 = (char *)MoreOptionsLayer::layerKey(a1, m_pageCount); sub_776584((int)&v26, v17); v18 = cocos2d::CCDictionary::objectForKey(v16, &v26); sub_774008(&v26); if ( v18 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 164))(v18, 1); m_leftBtn = a1->m_leftBtn; a1->m_page = m_pageCount; m_leftBtn->setVisible(m_leftBtn, 1); a1->m_rightBtn->setVisible(a1->m_rightBtn, 1); m_offsetInput = a1->m_offsetInput; setTouchEnabled = m_offsetInput->setTouchEnabled; v24 = ((int (__fastcall *)(CCTextInputNode *))m_offsetInput->isVisible)(m_offsetInput); setTouchEnabled(m_offsetInput, v24); sub_776584((int)&v26, "Options"); switch ( a1->m_page ) { case 0: v25 = "Gameplay"; goto LABEL_26; case 1: case 2: v25 = "Visual"; goto LABEL_26; case 3: v25 = "Practice"; goto LABEL_26; case 4: v25 = "Performance"; goto LABEL_26; case 5: v25 = "Audio"; goto LABEL_26; case 6: v25 = "Other"; LABEL_26: sub_7753D4((int)&v26, v25); break; default: break; } a1->m_categoryLabel->setString(a1->m_categoryLabel, (const unsigned __int8 *)v26.m_data.m_data); sub_774008(&v26); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source