// // CustomSongWidget::positionInfoObjects from 0x10061cfc0 to 0x10061d597 (1495 bytes) // // 2 xrefs: // > CustomSongWidget::init @ 0x10061b828 // > CustomSongWidget::updateSongInfo @ 0x10061d724 // // 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 CustomSongWidget::positionInfoObjects(CustomSongWidget *a1) { bool m_isMusicLibrary; // al SongInfoObject *m_songInfoObject; // rcx cocos2d::CCLabelBMFont *m_songLabel; // r14 cocos2d::CCLabelBMFont *m_songIDLabel; // r14 cocos2d::CCLabelBMFont *m_errorLabel; // r14 cocos2d::CCSprite *m_sliderGroove; // r14 unsigned __int64 *v7; // r15 __int64 v8; // xmm0_8 cocos2d::extension::CCScale9Sprite *m_bgSpr; // r14 __int64 v10; // rax cocos2d::CCLabelBMFont *m_artistLabel; // r14 unsigned __int64 *v12; // r15 cocos2d::CCLabelBMFont *v13; // r14 unsigned __int64 *v14; // r15 cocos2d::CCLabelBMFont *v15; // r14 float *v16; // rax cocos2d::CCSprite *v17; // r14 __int64 v18; // rax char v19; // r14 _BOOL8 v20; // r15 const char *v21; // rsi size_t v22; // rdx cocos2d::CCString *v23; // rax const char *CString; // r14 size_t v25; // rax size_t v26; // r15 char *v27; // r12 size_t v28; // r13 cocos2d::CCSprite *m_ncsLogo; // r14 cocos2d::CCSpriteFrameCache *v30; // rax const char *v31; // rsi cocos2d::CCSpriteFrame *v32; // rax cocos2d::CCSprite *v33; // r14 unsigned __int64 *v34; // r15 bool v35; // r13 cocos2d::CCLabelBMFont *v36; // r14 unsigned __int64 *v37; // r15 cocos2d::CCLabelBMFont *v38; // rbx unsigned __int64 *v39; // r14 unsigned __int64 *v40; // r15 unsigned __int64 v41[2]; // [rsp+0h] [rbp-70h] BYREF void *__p; // [rsp+10h] [rbp-60h] double v43[3]; // [rsp+18h] [rbp-58h] BYREF double v44; // [rsp+34h] [rbp-3Ch] BYREF unsigned __int64 v45; // [rsp+3Ch] [rbp-34h] BYREF float v46; // [rsp+44h] [rbp-2Ch] m_isMusicLibrary = a1->m_isMusicLibrary; m_songInfoObject = a1->m_songInfoObject; if ( m_songInfoObject ) { LOBYTE(m_songInfoObject) = m_songInfoObject->m_nongType > 0; v46 = *(float *)&m_songInfoObject; m_songLabel = a1->m_songLabel; if ( m_isMusicLibrary ) { LABEL_3: sub_10028CBE0((float *)v43, -150.0, 9.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_songLabel->setPosition)(m_songLabel, v43); m_songIDLabel = a1->m_songIDLabel; sub_10028CBE0((float *)v43, -149.0, -9.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_songIDLabel->setPosition)(m_songIDLabel, v43); m_errorLabel = a1->m_errorLabel; sub_10028CBE0((float *)v43, 0.0, -22.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_errorLabel->setPosition)(m_errorLabel, v43); m_sliderGroove = a1->m_sliderGroove; v7 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_errorLabel->getPosition)(a1->m_errorLabel); v8 = 0; sub_10028CBE0((float *)v41, 0.0, -0.5); sub_10028CCE0(v43, v7, v41); ((void (__fastcall *)(cocos2d::CCSprite *, double *))m_sliderGroove->setPosition)(m_sliderGroove, v43); m_bgSpr = a1->m_bgSpr; v10 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_sliderGroove->getPosition)(a1->m_sliderGroove); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))m_bgSpr->setPosition)(m_bgSpr, v10); goto LABEL_6; } } else { v46 = 0.0; m_songLabel = a1->m_songLabel; if ( m_isMusicLibrary ) goto LABEL_3; } sub_10028CBE0((float *)v43, -140.0, 29.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_songLabel->setPosition)(m_songLabel, v43); m_artistLabel = a1->m_artistLabel; v12 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getPosition)(a1->m_songLabel); sub_10028CBE0((float *)v41, 1.0, -24.0); sub_10028CCE0(v43, v12, v41); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))m_artistLabel->setPosition)(m_artistLabel, v43); v13 = a1->m_errorLabel; v14 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_artistLabel->getPosition)(a1->m_artistLabel); sub_10028CBE0((float *)v41, 1.0, -20.0); sub_10028CCE0(v43, v14, v41); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v13->setPosition)(v13, v43); v15 = a1->m_songIDLabel; v16 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getPosition)(a1->m_songLabel); sub_10028CBE0((float *)v43, *v16 + 1.0, -31.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v15->setPosition)(v15, v43); v17 = a1->m_sliderGroove; v18 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_errorLabel->getPosition)(a1->m_errorLabel); v8 = 3255304192LL; sub_10028CBE0((float *)v43, -34.0, *(float *)(v18 + 4)); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v17->setPosition)(v17, v43); LABEL_6: v19 = LOBYTE(v46); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_ncsLogo->setVisible)(a1->m_ncsLogo, LOBYTE(v46)); if ( !v19 ) return; v46 = *(float *)&a1->m_songInfoObject->m_nongType; v20 = LODWORD(v46) == 2; v21 = "ncs"; if ( LODWORD(v46) == 2 ) v21 = "chompo"; v22 = 3 * v20 + 3; LOBYTE(v43[0]) = 2 * v22; memcpy((char *)v43 + 1, v21, v22); *((_BYTE *)v43 + 3 * v20 + 4) = 0; v23 = (cocos2d::CCString *)sub_1007AB580("%s_%s_001.png", v41[0]); CString = cocos2d::CCString::getCString(v23); v25 = strlen(CString); if ( v25 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v8); v26 = v25; if ( v25 >= 0x17 ) { v28 = 26; if ( (v25 | 7) != 0x17 ) v28 = (v25 | 7) + 1; v27 = (char *)operator new(v28); __p = v27; v41[0] = v28 | 1; v41[1] = v26; } else { LOBYTE(v41[0]) = 2 * v25; v27 = (char *)v41 + 1; if ( !v25 ) goto LABEL_17; } memmove(v27, CString, v26); LABEL_17: v27[v26] = 0; m_ncsLogo = a1->m_ncsLogo; v30 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (v41[0] & 1) != 0 ) v31 = (const char *)__p; else v31 = (char *)v41 + 1; v32 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v30, v31); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_ncsLogo->setDisplayFrame)(m_ncsLogo, v32); v33 = a1->m_ncsLogo; if ( a1->m_isMusicLibrary ) { v34 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getPosition)(a1->m_songLabel); sub_10028CBE0((float *)&v45, 0.0, -1.0); sub_10028CCE0(&v44, v34, &v45); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v33->setPosition)(v33, &v44); v35 = LODWORD(v46) == 2; v36 = a1->m_songLabel; v37 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v36->getPosition)(v36); v46 = (float)(8 * v35 + 37); sub_10028CBE0((float *)&v45, v46, 0.0); sub_10028CCE0(&v44, v37, &v45); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v36->setPosition)(v36, &v44); v38 = a1->m_artistLabel; v39 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38); sub_10028CBE0((float *)&v45, v46, 0.0); } else { v40 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_songLabel->getPosition)(a1->m_songLabel); sub_10028CBE0((float *)&v45, 0.0, -2.0); sub_10028CCE0(&v44, v40, &v45); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v33->setPosition)(v33, &v44); v38 = a1->m_songLabel; v39 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v38->getPosition)(v38); sub_10028CBE0((float *)&v45, (float)(8 * (LODWORD(v46) == 2) + 53), 0.0); } sub_10028CCE0(&v44, v39, &v45); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v38->setPosition)(v38, &v44); if ( (v41[0] & 1) != 0 ) operator delete(__p); if ( (LOBYTE(v43[0]) & 1) != 0 ) operator delete(*(void **)&v43[2]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source