// // SelectFontLayer::updateFontLabel from 0x8c69c0 to 0x8c6af0 (304 bytes) // // 3 xrefs: // > SelectFontLayer::onChangeFont @ 0x8c6b7c // > SelectFontLayer::init @ 0x8c714c // > @ 0x4aa78 // // 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 SelectFontLayer::updateFontLabel(SelectFontLayer *a1) { int m_fontIndex; // w21 cocos2d::CCLabelBMFont *m_fontLabel; // x0 cocos2d::CCString *v4; // x0 GameManager *v5; // x0 GameManager *v6; // x23 GameManager *v7; // x0 cocos2d::CCLabelBMFont *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCLabelBMFont *v10; // x19 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 float v12; // [xsp+58h] [xbp+58h] float v13; // [xsp+5Ch] [xbp+5Ch] cocos2d::CCPoint v14; // [xsp+60h] [xbp+60h] BYREF m_fontIndex = a1->m_editorLayer->m_levelSettings->m_fontIndex; if ( m_fontIndex != a1->m_font ) { m_fontLabel = a1->m_fontLabel; if ( m_fontLabel ) { m_fontLabel->removeFromParent(m_fontLabel); a1->m_fontLabel = nullptr; } a1->m_font = m_fontIndex; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Font %i", (const char *)(unsigned int)(m_fontIndex + 1)); cocos2d::CCString::getCString(v4); v5 = GameManager::sharedState(); GameManager::loadFont(v5, a1->m_font); v6 = GameManager::sharedState(); v7 = GameManager::sharedState(); GameManager::getFontFile(v6, v7->m_loadedFont); v8 = cocos2d::CCLabelBMFont::create(); a1->m_fontLabel = v8; a1->addChild(a1, v8); v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v9); v10 = a1->m_fontLabel; setPosition = v10->setPosition; cocos2d::CCPoint::CCPoint(&v14, v12 * 0.5, v13 * 0.5); setPosition(v10, &v14); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source