// // SelectFontLayer::updateFontLabel from 0x5d45c8 to 0x5d469e (214 bytes) // // 2 xrefs: // > SelectFontLayer::onChangeFont @ 0x5d4700 // > SelectFontLayer::init @ 0x5d62dc // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:07 +0000 // int *__fastcall SelectFontLayer::updateFontLabel(int *this) { int *v1; // r4 int v2; // r6 int v3; // r0 cocos2d::CCString *v4; // r0 GameManager *CString; // r6 int v6; // r0 GameManager *Font; // r0 GameManager *v8; // r7 int v9; // r0 const char *FontFile; // r0 const char *v11; // r2 int v12; // r0 int v13; // r3 cocos2d::CCDirector *v14; // r0 int v15; // r6 int (__fastcall *v16)(int, _BYTE *); // r7 float v17[2]; // [sp+4h] [bp-18h] BYREF _BYTE v18[8]; // [sp+Ch] [bp-10h] BYREF v1 = this; v2 = *(_DWORD *)(*(_DWORD *)(*(this + 131) + 2084) + 300); if ( *(this + 130) != v2 ) { v3 = *(this + 132); if ( v3 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v3 + 260))(v3); v1[132] = 0; } v1[130] = v2; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Font %i", (const char *)(v2 + 1)); CString = (GameManager *)cocos2d::CCString::getCString(v4); v6 = GameManager::sharedState(CString); Font = (GameManager *)GameManager::loadFont(v6, v1[130]); v8 = (GameManager *)GameManager::sharedState(Font); v9 = GameManager::sharedState(v8); FontFile = GameManager::getFontFile(v8, *(_DWORD *)(v9 + 780)); v12 = cocos2d::CCLabelBMFont::create(CString, FontFile, v11); v13 = *v1; v1[132] = v12; v14 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int *, int))(v13 + 228))(v1, v12); cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17); v15 = v1[132]; v16 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v17[0] * 0.5, v17[1] * 0.5); return (int *)v16(v15, v18); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source