// // PlayLayer::toggleProgressbar from 0x1403b2760 to 0x1403b28fe (414 bytes) // // 2 xrefs: // > @ 0x1405c9ce8 // > @ 0x1406d6e54 // // 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 // // Hidden C++ exception states: #wind=3 void PlayLayer::toggleProgressbar(PlayLayer *a1) { float v1; // xmm0_4 GameManager *v3; // rcx bool m_showProgressBar; // si float v5; // xmm6_4 bool GameVariable; // bp float v7; // xmm8_4 __int64 v8; // rcx cocos2d::CCDirector *v9; // rax cocos2d::CCLabelBMFont *m_percentageLabel; // rcx cocos2d::CCLabelBMFont_vtbl *v11; // rbx double v12; // xmm0_8 const cocos2d::CCPoint *v13; // rax cocos2d::CCLabelBMFont_vtbl *v14; // rbx const cocos2d::CCPoint *v15; // rax float v16; // [rsp+60h] [rbp+8h] void *v17; // [rsp+68h] [rbp+10h] v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v17 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } m_showProgressBar = v3->m_showProgressBar; v5 = 0.0; if ( a1->m_isPlatformer ) { m_showProgressBar = 0; GameVariable = GameManager::getGameVariable(v3, "0145"); v7 = 0.0; } else { GameVariable = GameManager::getGameVariable(v3, "0040"); v7 = (float)(m_showProgressBar ? 0x6E : 0); } a1->m_progressBar->setVisible(a1->m_progressBar, m_showProgressBar); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(v9); a1->m_percentageLabel->setVisible(a1->m_percentageLabel, GameVariable); m_percentageLabel = a1->m_percentageLabel; v11 = m_percentageLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_percentageLabel->getPosition_0(m_percentageLabel); v12 = cocos2d::CCPoint::CCPoint(v1, (float)(v16 * 0.5) + v7); v11->setPosition_0(a1->m_percentageLabel, v13); if ( !m_showProgressBar && !a1->m_isPlatformer ) v5 = 0.5; v14 = a1->m_percentageLabel->__vftable; cocos2d::CCPoint::CCPoint(*(float *)&v12, v5); v14->setAnchorPoint(a1->m_percentageLabel, v15); PlayLayer::updateProgressbar(a1); if ( a1->m_isPlatformer && GameVariable ) GJBaseGameLayer::updatePlatformerTime(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source