// // CustomSongLayer::onSearch from 0x100144754 to 0x100144820 (204 bytes) // // 1 xrefs: // > CustomSongLayer::init @ 0x100144438 // // 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 CustomSongLayer::onSearch(CustomSongLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // x0 FMODAudioEngine *v4; // x0 void **v5; // x0 int v6; // w0 CustomSongWidget *m_songWidget; // x20 SongInfoObject *v8; // x0 GameManager *v9; // x0 CustomSongLayer *v10; // x0 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v12; // [xsp+1Fh] [xbp-11h] v3 = GameManager::sharedState(); if ( GameManager::getGameVariable(v3, "0051") ) { v4 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v4, 1); ((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_songIDInput->onClickTrackNode)(a1->m_songIDInput, 0); CCTextInputNode::getString(__p, a1->m_songIDInput); if ( v12 >= 0 ) v5 = __p; else v5 = (void **)__p[0]; v6 = atoi((const char *)v5); m_songWidget = a1->m_songWidget; v8 = SongInfoObject::create_1(v6); CustomSongWidget::updateSongObject(m_songWidget, v8); CustomSongWidget::getSongInfoIfUnloaded(a1->m_songWidget); if ( v12 < 0 ) operator delete(__p[0]); } else { v9 = GameManager::sharedState(); GameManager::setGameVariable(v9, "0051", 1); CustomSongLayer::showNewgroundsMessage(v10); } }