// // MoreSearchLayer::onSongMode from 0x100056b9c to 0x100056cdc (320 bytes) // // 2 xrefs: // > MoreSearchLayer::init @ 0x1000562cc // > MoreSearchLayer::init @ 0x100055d0c // // 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 MoreSearchLayer::onSongMode(MoreSearchLayer *a1, cocos2d::CCObject *a2) { int v3; // w20 int v4; // w21 GameLevelManager *v5; // x0 int BoolForKey; // w23 GameLevelManager *v7; // x0 GameLevelManager *v8; // x0 CCTextInputNode *m_enterSongID; // x21 ButtonSprite *v10; // x0 bool v11; // w20 const char *v12; // x1 const char *v13; // x21 ButtonSprite *v14; // x0 GameLevelManager *v15; // x0 bool v16; // w0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v18; // [xsp+1Fh] [xbp-31h] v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v4 = v3 == 2; v5 = GameLevelManager::sharedState(); BoolForKey = GameLevelManager::getBoolForKey(v5, "customsong_filter"); v7 = GameLevelManager::sharedState(); GameLevelManager::setBoolForKey(v7, v4, "customsong_filter"); if ( v4 != BoolForKey ) { v8 = GameLevelManager::sharedState(); GameLevelManager::setIntForKey(v8, v3 != 2, "song_filter"); m_enterSongID = a1->m_enterSongID; sub_100009900(__p, ""); CCTextInputNode::setString(m_enterSongID, __p); if ( v18 < 0 ) operator delete(__p[0]); } v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_normalBtn->getNormalImage)(a1->m_normalBtn); v11 = v3 == 2; if ( v11 ) v12 = "GJ_button_04.png"; else v12 = "GJ_button_01.png"; if ( v11 ) v13 = "GJ_button_01.png"; else v13 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v10, v12); v14 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_customBtn->getNormalImage)(a1->m_customBtn); ButtonSprite::updateBGImage(v14, v13); v15 = GameLevelManager::sharedState(); v16 = GameLevelManager::getBoolForKey(v15, "enable_songFilter"); MoreSearchLayer::toggleSongNodes(a1, v11, !v16); MoreSearchLayer::updateAudioLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source