// // MoreSearchLayer::updateAudioLabel from 0x6d3240 to 0x6d33f0 (432 bytes) // // 3 xrefs: // > MoreSearchLayer::selectSong @ 0x6d3438 // > MoreSearchLayer::onSongMode @ 0x6d37c8 // > @ 0x96150 // // 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 MoreSearchLayer::updateAudioLabel(MoreSearchLayer *a1) { GameLevelManager *v2; // x0 GameLevelManager *v3; // x0 unsigned int IntForKey; // w0 __int64 v5; // x1 LevelTools *v6; // x0 cocos2d::CCString *v7; // x0 const unsigned __int8 *CString; // x0 const cocos2d::CCSize *v9; // x0 long double v10; // q0 void *v11; // x0 unsigned int *v12; // x2 int v13; // w1 char *v14; // [xsp+38h] [xbp+38h] __int64 v15; // [xsp+50h] [xbp+50h] BYREF v2 = GameLevelManager::sharedState(); if ( GameLevelManager::getIntForKey(v2, "song_filter") <= 1 ) { v6 = nullptr; v5 = 1; } else { v3 = GameLevelManager::sharedState(); IntForKey = GameLevelManager::getIntForKey(v3, "song_filter"); v5 = IntForKey; v6 = (LevelTools *)(IntForKey - 1); } v14 = (char *)v5; LevelTools::getAudioTitle(v6, (__int64)&v15); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%02d: %s", v14, v15); CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v7); a1->m_audioTrackName->setString(a1->m_audioTrackName, CString); v9 = a1->m_audioTrackName->getContentSize(a1->m_audioTrackName); LODWORD(v10) = 1061997773; if ( (float)(200.0 / v9->width) < 0.8 ) *(float *)&v10 = 200.0 / a1->m_audioTrackName->getContentSize(a1->m_audioTrackName)->width; a1->m_audioTrackName->setScale(a1->m_audioTrackName, v10); v11 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v15 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v13 - 1; } if ( v13 <= 0 ) operator delete(v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source