// // LevelInfoLayer::levelDownloadFinished from 0x100029e54 to 0x10002a080 (556 bytes) // // 2 xrefs: // > sub_10002A0C8 @ 0x10002a0cc // > @ 0x1007649f0 // // 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 LevelInfoLayer::levelDownloadFinished(LevelInfoLayer *a1, GJGameLevel *a2) { GJGameLevel *m_level; // x8 GJGameLevel *v5; // x0 CCMenuItemSpriteExtra *m_cloneBtn; // x0 std::string *v7; // x0 __int64 v8; // x20 cocos2d::CCSpriteFrameCache *v9; // x0 const char *v10; // x1 cocos2d::CCSpriteFrame *v11; // x0 CCMenuItemSpriteExtra *v12; // x20 __int64 v13; // x0 CustomSongWidget *m_songWidget; // x20 GJGameLevel *v15; // x8 void *__p[2]; // [xsp+0h] [xbp-60h] BYREF char *v17; // [xsp+10h] [xbp-50h] void *__dst[2]; // [xsp+20h] [xbp-40h] BYREF char *longStorage; // [xsp+30h] [xbp-30h] void *v20[2]; // [xsp+38h] [xbp-28h] BYREF char v21; // [xsp+4Fh] [xbp-11h] m_level = a1->m_level; if ( !m_level || m_level->m_levelID.random - m_level->m_levelID.seed == a2->m_levelID.random - a2->m_levelID.seed ) { ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0); v5 = a1->m_level; if ( v5 ) { cocos2d::CCObject::release(v5); a1->m_level = nullptr; } a1->m_level = a2; cocos2d::CCObject::retain(a2); ((void (__fastcall *)(cocos2d::CCMenu *, __int64))a1->m_playBtnMenu->setVisible)(a1->m_playBtnMenu, 1); LevelInfoLayer::updateLabelValues(a1); m_cloneBtn = a1->m_cloneBtn; if ( m_cloneBtn ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_cloneBtn->setVisible)( m_cloneBtn, a1->m_level->m_password.random != a1->m_level->m_password.seed); if ( ((unsigned int (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_cloneBtn->isVisible)(a1->m_cloneBtn) ) { v7 = (std::string *)sub_100009900(v20, "GJ_duplicateBtn_001.png"); if ( a1->m_level->m_password.random - a1->m_level->m_password.seed != 1 ) std::string::assign(v7, "GJ_duplicateLockedBtn_001.png"); v8 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_cloneBtn->getNormalImage)(a1->m_cloneBtn); v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v21 >= 0 ) v10 = (const char *)v20; else v10 = (const char *)v20[0]; v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v10); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v8 + 1144LL))(v8, v11); if ( v21 < 0 ) operator delete(v20[0]); } v12 = a1->m_cloneBtn; v13 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v12->isVisible)(v12); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v12->setEnabled)(v12, v13); } m_songWidget = a1->m_songWidget; v15 = a1->m_level; if ( v15->m_songIDs.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__dst, (void *)v15->m_songIDs.m_data.m_long.capacitym1, v15->m_songIDs.m_data.m_long.size); v15 = a1->m_level; } else { *(_OWORD *)__dst = *(_OWORD *)&v15->m_songIDs.m_data.m_short.sizex2; longStorage = v15->m_songIDs.m_data.m_long.longStorage; } if ( v15->m_sfxIDs.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)v15->m_sfxIDs.m_data.m_long.capacitym1, v15->m_sfxIDs.m_data.m_long.size); v15 = a1->m_level; } else { *(_OWORD *)__p = *(_OWORD *)&v15->m_sfxIDs.m_data.m_short.sizex2; v17 = v15->m_sfxIDs.m_data.m_long.longStorage; } CustomSongWidget::updateWithMultiAssets(m_songWidget, __dst, __p, (unsigned int)v15->m_songSize); if ( SHIBYTE(v17) < 0 ) operator delete(__p[0]); if ( SHIBYTE(longStorage) < 0 ) operator delete(__dst[0]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source