// // GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x1002e1d64 to 0x1002e1fd8 (628 bytes) // // 1 xrefs: // > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1d24 // // 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 GameOptionsLayer::showPracticeMusicSyncUnlockInfo(GameOptionsLayer *a1) { int m_practiceDialogIndex; // w8 int v3; // w20 int v4; // w21 const std::string::value_type *v5; // x1 char *v6; // x0 DialogLayer *v7; // x20 int v8; // w8 int v9; // w8 std::string __p; // [xsp+0h] [xbp-90h] BYREF std::string __dst; // [xsp+20h] [xbp-70h] BYREF std::string v12; // [xsp+40h] [xbp-50h] BYREF std::string v13; // [xsp+58h] [xbp-38h] BYREF sub_100009900(&v13, ""); sub_100009900(&v12, "Scratch"); m_practiceDialogIndex = a1->m_practiceDialogIndex; v3 = 10; v4 = 2; if ( m_practiceDialogIndex > 3 ) { if ( m_practiceDialogIndex > 5 ) { if ( m_practiceDialogIndex != 6 ) { if ( m_practiceDialogIndex != 7 ) goto LABEL_20; v5 = "..."; goto LABEL_14; } std::string::assign( &v13, "ShiMmer... sHim... bLiNg sNap... HA!"); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 42; } else { if ( m_practiceDialogIndex != 4 ) { std::string::assign(&v13, "Looks to me like you had enough shiny..."); v3 = 11; goto LABEL_20; } std::string::assign( &v13, "ShiM gNaw glEaM... bRinG ShiNy!"); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 41; } LABEL_19: v4 = 4; goto LABEL_20; } if ( m_practiceDialogIndex > 1 ) { if ( m_practiceDialogIndex != 2 ) { v5 = "See what I mean?..."; LABEL_14: std::string::assign(&v13, v5); v3 = 12; goto LABEL_20; } std::string::assign(&v13, "SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz..."); std::string::assign(&v12, "Diamond Shopkeeper"); v3 = 40; goto LABEL_19; } if ( m_practiceDialogIndex ) { if ( m_practiceDialogIndex == 1 ) { std::string::assign(&v13, "I think the Diamond Shopkeeper has one, weird guy..."); v3 = 26; } } else { std::string::assign( &v13, "You need a Music Unlocker to play normal music in practice mode."); } LABEL_20: if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_); else __dst = v12; if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__p, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_); else __p = v13; v6 = DialogObject::create((__int64)&__dst, (__int64)&__p, v3, 0, 0xFFFFFF, 1.0); v7 = DialogLayer::create((DialogObject *)v6, v4); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__dst.__r_.__value_.__l.__data_); DialogLayer::addToMainScene(v7); DialogLayer::updateChatPlacement(v7, Center); DialogLayer::animateIn(v7, FromCenter); v8 = a1->m_practiceDialogIndex; if ( v8 <= 6 ) v9 = v8 + 1; else v9 = 0; a1->m_practiceDialogIndex = v9; if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v12.__r_.__value_.__l.__data_); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v13.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source