// // MoreSearchLayer::updateAudioLabel from 0x100056f5c to 0x100057074 (280 bytes) // // 3 xrefs: // > MoreSearchLayer::onSongFilter @ 0x100056a58 // > MoreSearchLayer::onSongMode @ 0x100056cc0 // > MoreSearchLayer::selectSong @ 0x100056f58 // // 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::updateAudioLabel(MoreSearchLayer *a1) { GameLevelManager *v2; // x0 GameLevelManager *v3; // x0 int IntForKey; // w20 void **v5; // x8 cocos2d::CCString *v6; // x0 const char *CString; // x0 float *v8; // x0 __n128 v9; // q0 void *__p[2]; // [xsp+18h] [xbp-38h] BYREF char v11; // [xsp+2Fh] [xbp-21h] v2 = GameLevelManager::sharedState(); if ( GameLevelManager::getIntForKey(v2, "song_filter") < 2 ) { IntForKey = 1; } else { v3 = GameLevelManager::sharedState(); IntForKey = GameLevelManager::getIntForKey(v3, "song_filter"); } LevelTools::getAudioTitle(__p, (unsigned int)(IntForKey - 1)); if ( v11 >= 0 ) v5 = __p; else v5 = (void **)__p[0]; v6 = (cocos2d::CCString *)sub_100268F4C("%02d: %s", IntForKey, (const char *)v5); CString = cocos2d::CCString::getCString(v6); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_audioTrackName->setString)( a1->m_audioTrackName, CString); v8 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_audioTrackName->getContentSize)(a1->m_audioTrackName); v9.n128_u32[0] = 1061997773; if ( (float)(200.0 / *v8) < 0.8 ) v9.n128_f32[0] = 200.0 / *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_audioTrackName->getContentSize)(a1->m_audioTrackName); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __n128))a1->m_audioTrackName->setScale)(a1->m_audioTrackName, v9); if ( v11 < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source