// // SelectFontLayer::onChangeFont from 0x1002d221c to 0x1002d22b0 (148 bytes) // // 1 xrefs: // > SelectFontLayer::init @ 0x1002d2000 // // 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; // w20 int v4; // w8 int v5; // w8 int v6; // w20 cocos2d::CCLabelBMFont *m_fontLabel; // x0 m_fontIndex = a1->m_editorLayer->m_levelSettings->m_fontIndex; if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 ) v4 = 1; else v4 = -1; v5 = (v4 + m_fontIndex) & ~((v4 + m_fontIndex) >> 31); if ( v5 >= 59 ) v6 = 59; else 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