// // CustomSongLayer::onSearch from 0x57ce44 to 0x57cee8 (164 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:52:50 +0000 // int __fastcall CustomSongLayer::onSearch(CustomSongLayer *this, cocos2d::CCObject *a2) { GameManager *v3; // r0 FMODAudioEngine *GameVariable; // r0 GameManager *v5; // r0 FMODAudioEngine *v7; // r0 char *v8; // r0 SongInfoObject *v9; // r0 CustomSongWidget *v10; // r7 int v11; // r1 SongInfoObject *v12; // r0 char v13; // [sp+0h] [bp-14h] BYREF char v14; // [sp+1h] [bp-13h] BYREF char *v15; // [sp+8h] [bp-Ch] v3 = (GameManager *)GameManager::sharedState(this); GameVariable = (FMODAudioEngine *)GameManager::getGameVariable(v3, "0051"); if ( GameVariable ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(GameVariable); FMODAudioEngine::stopAllMusic(v7, 1); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 580))(*((_DWORD *)this + 133), 0); CCTextInputNode::getString((CCTextInputNode *)&v13, *((_DWORD *)this + 133)); if ( (v13 & 1) != 0 ) v8 = v15; else v8 = &v14; v9 = (SongInfoObject *)atoi(v8); v10 = *((CustomSongWidget **)this + 134); v12 = SongInfoObject::create(v9, v11); CustomSongWidget::updateSongObject(v10, v12); CustomSongWidget::getSongInfoIfUnloaded(*((_DWORD *)this + 134)); return std::string::~string((int)&v13); } else { v5 = (GameManager *)GameManager::sharedState(nullptr); GameManager::setGameVariable(v5, "0051", (_BYTE *)&dword_0 + 1); return CustomSongLayer::showNewgroundsMessage(this); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source