// // SongInfoLayer::showCustomMusicUnlockInfo from 0x42d7a0 to 0x42d8d2 (306 bytes) // // 2 xrefs: // > SongInfoLayer::onMenuMusic @ 0x42d918 // > SongInfoLayer::onPracticeMusic @ 0x42d96e // // 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) { char *v2; // r1 char *v3; // r1 std::string v4; // r7 char *v5; // r1 DialogObject *v6; // r0 DialogLayer *v7; // r7 int v8; // r6 _BYTE v9[4]; // [sp+10h] [bp-14h] BYREF char v10; // [sp+14h] [bp-10h] BYREF _BYTE v11[4]; // [sp+18h] [bp-Ch] BYREF sub_776584((int)v9, (char *)&unk_939830); switch ( a1->m_musicCustomizerMessageIndex ) { case 0: v2 = "You need a Music Customizer to change menu and practice music."; goto LABEL_3; case 1: v3 = "Lucky for you I have one in my shop.\nBut they are very expensive."; goto LABEL_5; case 2: v2 = "Find me when you can afford it.\nI need the Mana Orbs..."; goto LABEL_3; case 3: v5 = "All this clicking makes me want to give you the item for free!"; goto LABEL_8; case 4: v2 = "... is something I would never say."; LABEL_3: sub_7753D4((int)v9, v2); goto LABEL_12; case 5: v3 = "You really are persistent, I will give you that."; LABEL_5: sub_7753D4((int)v9, v3); v4.m_data.m_data = (stl::StringData::Internal *)(&dword_24 + 2); goto LABEL_13; case 6: v5 = "I am The Mechanic, not Santa Claus. I don't work for free."; LABEL_8: sub_7753D4((int)v9, v5); v4.m_data.m_data = (stl::StringData::Internal *)(&dword_24 + 3); goto LABEL_13; default: LABEL_12: v4.m_data.m_data = (stl::StringData::Internal *)(&dword_24 + 1); LABEL_13: sub_776584((int)&v10, "The Mechanic"); sub_775C20(v11); v6 = (DialogObject *)DialogObject::create((DialogObject *)&v10, (std::string)v11, v4, 1065353216, 0.0, 255); v7 = DialogLayer::create(v6, (int)byte_4); sub_774008(v11); sub_774008(&v10); DialogLayer::addToMainScene(v7); DialogLayer::updateChatPlacement(v7, Center); DialogLayer::animateIn(v7, FromCenter); v8 = a1->m_musicCustomizerMessageIndex + 1; if ( v8 > 6 ) a1->m_musicCustomizerMessageIndex = 0; else a1->m_musicCustomizerMessageIndex = v8; sub_774008(v9); return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source