// // CustomSongLayer::onSearch from 0x45f5f0 to 0x45f686 (150 bytes) // // 0 xrefs: // // 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 CustomSongLayer::onSearch(CustomSongLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // r0 GameManager *v4; // r0 FMODAudioEngine *v5; // r0 SongInfoObject *v6; // r0 CustomSongWidget *m_songWidget; // r7 int v8; // r1 SongInfoObject *v9; // r0 char *v10[3]; // [sp+0h] [bp-Ch] BYREF v10[0] = (char *)a1; v10[1] = (char *)a2; v3 = GameManager::sharedState(); if ( GameManager::getGameVariable(v3, "0051") ) { v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, (bool)&dword_0 + 1); a1->m_songIDInput->onClickTrackNode(a1->m_songIDInput, 0); CCTextInputNode::getString((CCTextInputNode *)v10, (int)a1->m_songIDInput); v6 = (SongInfoObject *)atoi(v10[0]); m_songWidget = a1->m_songWidget; v9 = SongInfoObject::create(v6, v8); CustomSongWidget::updateSongObject(m_songWidget, v9); CustomSongWidget::getSongInfoIfUnloaded(a1->m_songWidget); sub_774008(v10); } else { v4 = GameManager::sharedState(); GameManager::setGameVariable(v4, "0051", 1); CustomSongLayer::showNewgroundsMessage(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source