// // RetryLevelLayer::customSetup from 0x435bac to 0x436040 (1172 bytes) // // 0 xrefs: // // 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 RetryLevelLayer::customSetup(RetryLevelLayer *a1) { cocos2d::CCDirector *v2; // r0 cocos2d::CCLabelBMFont *v3; // r5 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int v5; // r2 bool v6; // r3 GameManager *v7; // r0 cocos2d::CCString *v8; // r0 cocos2d::CCLabelBMFont *v9; // r5 int m_totalTime; // s15 int v11; // r8 cocos2d::CCString *v12; // r0 const char *CString; // r0 cocos2d::CCString *v14; // r0 cocos2d::CCLabelBMFont *v15; // r7 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v17; // r11 cocos2d::CCMenu *v18; // r0 cocos2d::CCLayer *m_mainLayer; // r8 cocos2d::CCMenu *m_mainMenu; // r7 cocos2d::CCSprite *v21; // r0 CCMenuItemSpriteExtra *v22; // r8 cocos2d::CCSprite *v23; // r0 CCMenuItemSpriteExtra *v24; // r7 cocos2d::CCSprite *v25; // r11 cocos2d::CCNode *v26; // r10 const cocos2d::CCPoint *v27; // r0 void (__fastcall *v28)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCSprite *v29; // r8 cocos2d::CCLayer *v30; // r4 cocos2d::CCNode *v31; // r11 const cocos2d::CCPoint *v32; // r0 int v33; // r2 bool v34; // r3 void (__fastcall *v35)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r4 cocos2d::CCPoint *v36; // [sp+Ch] [bp-50h] cocos2d::CCPoint *v37; // [sp+Ch] [bp-50h] cocos2d::CCLayer *v38; // [sp+Ch] [bp-50h] cocos2d::CCSize v39; // [sp+14h] [bp-48h] BYREF cocos2d::CCPoint v40; // [sp+1Ch] [bp-40h] BYREF cocos2d::CCPoint v41; // [sp+24h] [bp-38h] BYREF cocos2d::CCPoint v42; // [sp+2Ch] [bp-30h] BYREF cocos2d::CCPoint v43; // [sp+34h] [bp-28h] BYREF cocos2d::CCPoint v44; // [sp+3Ch] [bp-20h] BYREF cocos2d::CCPoint v45; // [sp+44h] [bp-18h] BYREF cocos2d::CCPoint v46; // [sp+4Ch] [bp-10h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v39, v2); GameManager::sharedState(); sub_775C20(&v46); v3 = cocos2d::CCLabelBMFont::create(); sub_774008(&v46); setPosition = v3->setPosition; cocos2d::CCPoint::CCPoint(&v46, v39.width * 0.5, (float)((float)(v39.height * 0.5) + 80.0) - 15.0); setPosition(v3, &v46); a1->m_mainLayer->addChild(a1->m_mainLayer, v3); cocos2d::CCLabelBMFont::limitLabelWidth(v3, 320.0, 0.0, 0.0); RetryLevelLayer::setupLastProgress(a1); a1->m_mainLayer->removeChildByTag_0(a1->m_mainLayer, 0, 1); a1->m_mainLayer->removeChildByTag_0(a1->m_mainLayer, 1, 1); a1->m_buttonMenu->setVisible(a1->m_buttonMenu, 0); cocos2d::CCPoint::CCPoint(&v45, 0.0, 5.0); cocos2d::CCPoint::operator+(&v46, &a1->m_endPosition, &v45); cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_endPosition, COERCE_FLOAT(&v46), v5, v6); cocos2d::CCPoint::CCPoint(&v40, v39.width * 0.5, (float)((float)(v39.height * 0.5) - 10.0) - 15.0); v7 = GameManager::sharedState(); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Jumps: %i", (const char *)v7->m_playLayer->m_jumps); cocos2d::CCString::getCString(v8); v9 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 3); v9->setPosition(v9, &v40); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v9->setScale)(v9, 1061997773); m_totalTime = (int)GameManager::sharedState()->m_playLayer->m_gameState.m_totalTime; v11 = m_totalTime / 60 % 60; if ( m_totalTime / 3600 ) v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%02d:%02d:%02d", (const char *)(m_totalTime / 3600), v11, m_totalTime % 60); else v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%02d:%02d", (const char *)v11, m_totalTime % 60); CString = cocos2d::CCString::getCString(v12); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Time: %s", CString); cocos2d::CCString::getCString(v14); v15 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v15, 3); v16 = v15->setPosition; v17 = (int)v9->getPosition(v9); cocos2d::CCPoint::CCPoint(&v45, 0.0, -24.0); cocos2d::CCPoint::operator+(&v46, v17, &v45); v16(v15, &v46); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v15->setScale)(v15, 1061997773); v18 = cocos2d::CCMenu::create(); a1->m_mainMenu = v18; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v18, 1); m_mainLayer = a1->m_mainLayer; m_mainMenu = a1->m_mainMenu; cocos2d::CCPoint::CCPoint(&v45, v39.width * 0.5, (float)((float)(v39.height * 0.5) - 115.0) - 10.0); cocos2d::CCNode::convertToWorldSpace(&v46, m_mainLayer, &v45); cocos2d::CCNode::convertToNodeSpace(&v41, m_mainMenu, &v46); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_replayBtn_001.png"); LODWORD(v45.x) = RetryLevelLayer::onReplay; v45.y = 0.0; v22 = CCMenuItemSpriteExtra::create( v21, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(RetryLevelLayer::onReplay, (unsigned int)a1)); a1->m_mainMenu->addChild(a1->m_mainMenu, v22); v36 = (cocos2d::CCPoint *)v22->setPosition; cocos2d::CCPoint::CCPoint(&v44, -100.0, 0.0); cocos2d::CCPoint::operator+(&v46, &v41, &v44); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v36)(v22, &v46); v23 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_menuBtn_001.png"); LODWORD(v46.x) = RetryLevelLayer::onMenu; v46.y = 0.0; v24 = CCMenuItemSpriteExtra::create( v23, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(RetryLevelLayer::onMenu, (unsigned int)a1)); a1->m_mainMenu->addChild(a1->m_mainMenu, v24); v37 = (cocos2d::CCPoint *)v24->setPosition; cocos2d::CCPoint::CCPoint(&v43, 100.0, 0.0); cocos2d::CCPoint::operator+(&v44, &v41, &v43); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))v37)(v24, &v44); a1->m_mainLayer->setPosition(a1->m_mainLayer, &a1->m_endPosition); if ( PlatformToolbox::isControllerConnected() ) { v25 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_Start_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v25, 10); v38 = a1->m_mainLayer; v26 = v22->getParent(v22); v27 = v22->getPosition(v22); cocos2d::CCNode::convertToWorldSpace(&v44, v26, v27); cocos2d::CCNode::convertToNodeSpace(&v42, v38, &v44); v28 = v25->setPosition; cocos2d::CCPoint::CCPoint(&v43, 0.0, -25.0); cocos2d::CCPoint::operator+(&v44, &v42, &v43); v28(v25, &v44); v29 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v29, 10); v30 = a1->m_mainLayer; v31 = v24->getParent(v24); v32 = v24->getPosition(v24); cocos2d::CCNode::convertToWorldSpace(&v43, v31, v32); cocos2d::CCNode::convertToNodeSpace(&v44, v30, &v43); cocos2d::CCPoint::operator=((PlayerObject *)&v42, COERCE_FLOAT(&v44), v33, v34); v35 = v29->setPosition; cocos2d::CCPoint::CCPoint(&v43, 0.0, -25.0); cocos2d::CCPoint::operator+(&v44, &v42, &v43); v35(v29, &v44); ((void (__fastcall *)(cocos2d::CCSprite *, int))v29->setScale)(v29, 1061997773); } sub_776584((int)&v44, "Geometry Dash"); PlatformToolbox::tryShowRateDialog((const char **)&v44); sub_774008(&v44); }
GD Web Decomp Icon

GD Web Decomp

Raw Source