// // SongInfoLayer::showCustomMusicUnlockInfo from 0x1003a8a8c to 0x1003a8c30 (420 bytes) // // 2 xrefs: // > SongInfoLayer::onMenuMusic @ 0x1003a89dc // > SongInfoLayer::onPracticeMusic @ 0x1003a8a70 // // 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 SongInfoLayer::showCustomMusicUnlockInfo(SongInfoLayer *a1) { std::string *v2; // x0 int m_musicCustomizerMessageIndex; // w8 int v4; // w20 const std::string::value_type *v5; // x1 const std::string::value_type *v6; // x1 const std::string::value_type *v7; // x1 char *v8; // x0 DialogLayer *v9; // x20 int v10; // w8 int v11; // w8 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF __int64 v13; // [xsp+10h] [xbp-50h] void *v14[2]; // [xsp+20h] [xbp-40h] BYREF char v15; // [xsp+37h] [xbp-29h] __int128 v16; // [xsp+38h] [xbp-28h] BYREF __int64 v17; // [xsp+48h] [xbp-18h] v2 = (std::string *)sub_100009900(&v16, ""); m_musicCustomizerMessageIndex = a1->m_musicCustomizerMessageIndex; v4 = 37; if ( m_musicCustomizerMessageIndex <= 2 ) { if ( !m_musicCustomizerMessageIndex ) { v5 = "You need a Music Customizer to change menu and practice music."; goto LABEL_13; } if ( m_musicCustomizerMessageIndex != 1 ) { if ( m_musicCustomizerMessageIndex != 2 ) goto LABEL_19; v5 = "Find me when you can afford it.\nI need the Mana Orbs..."; goto LABEL_13; } v7 = "Lucky for you I have one in my shop.\nBut they are very expensive."; } else { if ( m_musicCustomizerMessageIndex <= 4 ) { if ( m_musicCustomizerMessageIndex != 3 ) { v5 = "... is something I would never say."; LABEL_13: std::string::assign(v2, v5); goto LABEL_19; } v6 = "All this clicking makes me want to give you the item for free!"; goto LABEL_15; } if ( m_musicCustomizerMessageIndex != 5 ) { if ( m_musicCustomizerMessageIndex != 6 ) goto LABEL_19; v6 = "I am The Mechanic, not Santa Claus. I don't work for free."; LABEL_15: std::string::assign(v2, v6); v4 = 39; goto LABEL_19; } v7 = "You really are persistent, I will give you that."; } std::string::assign(v2, v7); v4 = 38; LABEL_19: sub_100009900(v14, "The Mechanic"); if ( SHIBYTE(v17) < 0 ) { sub_1000097D0(__p, (void *)v16, *((unsigned __int64 *)&v16 + 1)); } else { *(_OWORD *)__p = v16; v13 = v17; } v8 = DialogObject::create((__int64)v14, (__int64)__p, v4, 0, 0xFFFFFF, 1.0); v9 = DialogLayer::create((DialogObject *)v8, 4); if ( SHIBYTE(v13) < 0 ) operator delete(__p[0]); if ( v15 < 0 ) operator delete(v14[0]); DialogLayer::addToMainScene(v9); DialogLayer::updateChatPlacement(v9, Center); DialogLayer::animateIn(v9, FromCenter); v10 = a1->m_musicCustomizerMessageIndex; if ( v10 <= 5 ) v11 = v10 + 1; else v11 = 0; a1->m_musicCustomizerMessageIndex = v11; if ( SHIBYTE(v17) < 0 ) operator delete((void *)v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source