// // SongInfoLayer::showCustomMusicUnlockInfo from 0x7de2a8 to 0x7de624 (892 bytes) // // 3 xrefs: // > SongInfoLayer::onMenuMusic @ 0x7de6a0 // > SongInfoLayer::onPracticeMusic @ 0x7de728 // > @ 0xa1130 // // 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 SongInfoLayer::showCustomMusicUnlockInfo(SongInfoLayer *a1) { unsigned int v2; // w25 DialogObject *v3; // x0 DialogLayer *v4; // x23 void *v5; // x0 void *v6; // x0 __int64 v7; // x2 int v8; // w1 __int64 *v9; // x0 unsigned int *v10; // x2 int v11; // w1 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x1 int v15; // w2 __int64 v16; // [xsp+60h] [xbp+60h] BYREF __int64 v17; // [xsp+68h] [xbp+68h] BYREF __int64 v18; // [xsp+70h] [xbp+70h] BYREF cocos2d::_ccColor3B v19; // 0:w5.3 sub_D153B8((int)&v16, &byte_F288A0); switch ( a1->m_musicCustomizerMessageIndex ) { case 0: sub_D1798C(&v16, "You need a Music Customizer to change menu and practice music.", 70); goto LABEL_2; case 1: sub_D1798C(&v16, "Lucky for you I have one in my shop.\nBut they are very expensive.", 81); v2 = 38; goto LABEL_3; case 2: sub_D1798C( &v16, "Find me when you can afford it.\nI need the Mana Orbs...", 95); goto LABEL_2; case 3: sub_D1798C(&v16, "All this clicking makes me want to give you the item for free!", 78); v2 = 39; goto LABEL_3; case 4: sub_D1798C(&v16, "... is something I would never say.", 53); goto LABEL_2; case 5: sub_D1798C(&v16, "You really are persistent, I will give you that.", 56); v2 = 38; goto LABEL_3; case 6: sub_D1798C(&v16, "I am The Mechanic, not Santa Claus. I don't work for free.", 74); v2 = 39; goto LABEL_3; default: LABEL_2: v2 = 37; LABEL_3: sub_D153B8((int)&v17, "The Mechanic"); sub_D18D28(&v18); v3 = (DialogObject *)DialogObject::create( (DialogObject *)&v17, (std::string)&v18, (std::string)v2, 0, 1.0, (bool)&unk_FFFFFF, v19); v4 = DialogLayer::create(v3, (int)&byte_4); v5 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v18 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v5); } v6 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v17 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v13 - 1; } if ( v13 <= 0 ) operator delete(v6); } DialogLayer::addToMainScene(v4); DialogLayer::updateChatPlacement(v4, Center); DialogLayer::animateIn(v4, FromCenter); v7 = v16; v8 = a1->m_musicCustomizerMessageIndex + 1; v9 = (__int64 *)(v16 - 24); if ( v8 > 6 ) v8 = 0; a1->m_musicCustomizerMessageIndex = v8; if ( v9 != &qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v7 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *(_DWORD *)(v7 - 8); *(_DWORD *)(v7 - 8) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); } return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source