// // LevelInfoLayer::levelDownloadFinished from 0x3b576c to 0x3b58e4 (376 bytes) // // 1 xrefs: // > `non-virtual thunk to'LevelInfoLayer::levelDownloadFinished @ 0x3b58f4 // // 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 LevelInfoLayer::levelDownloadFinished(LevelInfoLayer *a1, GJGameLevel *a2) { GJGameLevel *m_level; // r2 GJGameLevel *v5; // r0 CCMenuItemSpriteExtra *m_cloneBtn; // r0 cocos2d::CCNode *v7; // r8 void (__fastcall *setSkewY)(cocos2d::CCNode *__hidden, float); // r9 cocos2d::CCSpriteFrameCache *v9; // r0 cocos2d::CCSpriteFrame *v10; // r0 CCMenuItemSpriteExtra *v11; // r8 void (__fastcall *setEnabled)(cocos2d::CCMenuItemSprite *__hidden, bool); // r9 int v13; // r0 CustomSongWidget *m_songWidget; // r8 _BYTE v15[4]; // [sp+4h] [bp-10h] BYREF char *v16; // [sp+8h] [bp-Ch] BYREF 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 ) { a1->m_circle->setVisible(a1->m_circle, 0); v5 = a1->m_level; if ( v5 ) cocos2d::CCObject::release(v5); a1->m_level = a2; cocos2d::CCObject::retain(a2); a1->m_playBtnMenu->setVisible(a1->m_playBtnMenu, 1); LevelInfoLayer::updateLabelValues(a1); m_cloneBtn = a1->m_cloneBtn; if ( m_cloneBtn ) { m_cloneBtn->setVisible(m_cloneBtn, a1->m_level->m_password.random != a1->m_level->m_password.seed); if ( ((int (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_cloneBtn->isVisible)(a1->m_cloneBtn) ) { sub_776584((int)&v16, "GJ_duplicateBtn_001.png"); if ( a1->m_level->m_password.random - a1->m_level->m_password.seed != 1 ) sub_7753D4((int)&v16, "GJ_duplicateLockedBtn_001.png"); v7 = a1->m_cloneBtn->getNormalImage(a1->m_cloneBtn); setSkewY = v7->__vftable[1].setSkewY; v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v16); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSpriteFrame *))setSkewY)(v7, v10); sub_774008(&v16); } v11 = a1->m_cloneBtn; setEnabled = v11->setEnabled; v13 = ((int (__fastcall *)(CCMenuItemSpriteExtra *))v11->isVisible)(v11); setEnabled(v11, v13); } m_songWidget = a1->m_songWidget; sub_775C20(v15, &a1->m_level->m_songIDs); sub_775C20(&v16, &a1->m_level->m_sfxIDs); CustomSongWidget::updateWithMultiAssets(m_songWidget, (std::string)v15, (std::string)&v16, a1->m_level->m_songSize); sub_774008(&v16); sub_774008(v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source