// // LevelPage::onPlay from 0x8c81d0 to 0x8c8478 (680 bytes) // // 4 xrefs: // > LevelSelectLayer::onPlay @ 0x8c84b4 // > @ 0x67090 // > LevelPage::init @ 0x8c45f0 // > @ 0x1542828 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:56:35 +0000 // __int64 __fastcall LevelPage::onPlay(LevelPage *this, cocos2d::CCObject *a2) { GameStatsManager *v3; // x0 GameStatsManager *v4; // x0 int Stat; // w0 _DWORD *v6; // x3 int v7; // w1 cocos2d::CCString *v9; // x0 const char *CString; // x0 size_t v11; // x0 const char *v12; // x1 size_t v13; // x0 __int64 v14; // x20 FMODAudioEngine *v15; // x0 FMODAudioEngine *v16; // x0 FMODAudioEngine *v17; // x0 __int64 v18; // x22 cocos2d::CCDelayTime *v19; // x0 cocos2d::CCSequence *v20; // x21 cocos2d::CCFiniteTimeAction *v21; // x0 cocos2d::CCAction *v22; // x0 char *v23; // [xsp+38h] [xbp+38h] char *v24; // [xsp+38h] [xbp+38h] __int64 v25[2]; // [xsp+48h] [xbp+48h] BYREF void *v26; // [xsp+58h] [xbp+58h] cocos2d::CCDelayTime *v27; // [xsp+60h] [xbp+60h] BYREF __int64 v28; // [xsp+68h] [xbp+68h] void *v29; // [xsp+70h] [xbp+70h] v3 = (GameStatsManager *)(unsigned int)(*(_DWORD *)(*((_QWORD *)this + 53) + 328LL) - *(_DWORD *)(*((_QWORD *)this + 53) + 332LL)); if ( (_DWORD)v3 != -1 ) { v4 = (GameStatsManager *)GameStatsManager::sharedState(v3); Stat = GameStatsManager::getStat(v4, "8"); v6 = *((_DWORD **)this + 53); if ( v6[82] - v6[83] == -2 ) { LevelPage::onTheTower(this, nullptr); } else { v7 = v6[277]; if ( Stat < v7 ) { v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Collect %i more Secret Coins to unlock this level!", (const char *)(unsigned int)(v7 - Stat)); CString = (const char *)cocos2d::CCString::getCString(v9); v25[0] = 0; v23 = (char *)CString; v25[1] = 0; v26 = nullptr; v11 = strlen(CString); std::string::__init(v25, v23, v11); v12 = (char *)v25 + 1; if ( (v25[0] & 1) != 0 ) v12 = (const char *)v26; v24 = (char *)v12; v27 = nullptr; v28 = 0; v29 = nullptr; v13 = strlen(v12); std::string::__init((__int64 *)&v27, v24, v13); v14 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Locked", (char *)&v27, (ButtonSprite *)"OK", nullptr, 300.0); if ( ((unsigned __int8)v27 & 1) != 0 ) operator delete(v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14); if ( (v25[0] & 1) != 0 ) operator delete(v26); } else if ( !*((_BYTE *)this + 416) && !s_didClick ) { v15 = (FMODAudioEngine *)*(unsigned __int8 *)(cocos2d::CCDirector::sharedDirector(nullptr) + 176); if ( !(_DWORD)v15 ) { *((_BYTE *)this + 416) = 1; s_didClick = 1; v16 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v15); v17 = (FMODAudioEngine *)FMODAudioEngine::stopAllMusic(v16, 1); v18 = FMODAudioEngine::sharedEngine(v17); v27 = nullptr; v28 = 0; v29 = nullptr; std::string::__init((__int64 *)&v27, "playSound_01.ogg", 0x10u); FMODAudioEngine::playEffect(v18, (char *)&v27, 1.0, 0.0, 0.3); v19 = (cocos2d::CCDelayTime *)(unsigned __int8)v27; if ( ((unsigned __int8)v27 & 1) != 0 ) operator delete(v29); v20 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v19, 0.0); v21 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LevelPage::playStep2, 0); v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v20, v21, 0); cocos2d::CCNode::runAction(this, v22); } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source