// // SongInfoLayer::onMenuMusic from 0x1404942b0 to 0x140494375 (197 bytes) // // 3 xrefs: // > SongInfoLayer::init @ 0x1404938ce // > @ 0x1406dc134 // > @ 0x1406dc140 // // 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 // // Hidden C++ exception states: #wind=5 void SongInfoLayer::onMenuMusic(SongInfoLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx int m_songID; // eax void *v5; // [rsp+40h] [rbp+18h] void *v6; // [rsp+40h] [rbp+18h] if ( !qword_1406C2EE8 ) { v5 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v5); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); } if ( GameStatsManager::isItemUnlocked((GameStatsManager *)a1, GJItem, 16) ) { if ( a1->m_songID > 0 ) { v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v6 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } m_songID = a1->m_songID; if ( v3->m_customMenuSongID == m_songID ) m_songID = 0; v3->m_customMenuSongID = m_songID; GameManager::fadeInMenuMusic(v3); } } else { SongInfoLayer::showCustomMusicUnlockInfo(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source