// // SelectFontLayer::updateFontLabel from 0xa1f540 to 0xa1f670 (304 bytes) // // 3 xrefs: // > SelectFontLayer::onChangeFont @ 0xa1f6fc // > SelectFontLayer::init @ 0xa222cc // > @ 0x69238 // // 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:59:39 +0000 // __int64 __fastcall SelectFontLayer::updateFontLabel(SelectFontLayer *this) { int v2; // w21 __int64 v3; // x0 cocos2d::CCString *v4; // x0 GameManager *CString; // x22 __int64 v6; // x0 GameManager *Font; // x0 GameManager *v8; // x23 __int64 v9; // x0 const char *FontFile; // x0 const char *v11; // x2 __int64 v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 __int64 v15; // x19 void (__fastcall *v16)(__int64, _BYTE *); // x21 __int64 v18; // [xsp+58h] [xbp+58h] BYREF _BYTE v19[8]; // [xsp+60h] [xbp+60h] BYREF v2 = *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 83) + 3272LL) + 360LL); if ( v2 != *((_DWORD *)this + 165) ) { v3 = *((_QWORD *)this + 84); if ( v3 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 520LL))(v3); *((_QWORD *)this + 84) = 0; } *((_DWORD *)this + 165) = v2; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Font %i", (const char *)(unsigned int)(v2 + 1)); CString = (GameManager *)cocos2d::CCString::getCString(v4); v6 = GameManager::sharedState(CString); Font = (GameManager *)GameManager::loadFont(v6, *((_DWORD *)this + 165)); v8 = (GameManager *)GameManager::sharedState(Font); v9 = GameManager::sharedState(v8); FontFile = GameManager::getFontFile(v8, *(_DWORD *)(v9 + 992)); v12 = cocos2d::CCLabelBMFont::create(CString, FontFile, v11); *((_QWORD *)this + 84) = v12; v13 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SelectFontLayer *, __int64))(*(_QWORD *)this + 456LL))( this, v12); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v18, v14); v15 = *((_QWORD *)this + 84); v16 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, *(float *)&v18 * 0.5, *((float *)&v18 + 1) * 0.5); v16(v15, v19); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source