// // SelectFontLayer::onChangeFont from 0x10029a540 to 0x10029a5d3 (147 bytes) // // 2 xrefs: // > SelectFontLayer::init @ 0x10029a329 // > SelectFontLayer::init @ 0x10029a408 // // 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 __fastcall SelectFontLayer::onChangeFont(SelectFontLayer *a1, cocos2d::CCObject *a2) { int m_fontIndex; // r14d int v4; // eax int v5; // ecx int v6; // r14d cocos2d::CCLabelBMFont *m_fontLabel; // rdi m_fontIndex = a1->m_editorLayer->m_levelSettings->m_fontIndex; v4 = m_fontIndex + 2 * (((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1) - 1; v5 = 0; if ( v4 > 0 ) v5 = v4; v6 = 59; if ( v5 < 59 ) v6 = v5; if ( v6 != a1->m_font ) { m_fontLabel = a1->m_fontLabel; if ( m_fontLabel ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *))m_fontLabel->removeFromParent)(m_fontLabel); a1->m_fontLabel = nullptr; } LevelEditorLayer::updateLevelFont(a1->m_editorLayer, v6); SelectFontLayer::updateFontLabel(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source