// // GameManager::loadFont from 0x414534 to 0x41458a (86 bytes) // // 6 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x406a42 // > GameManager::getFontFile @ 0x4145a2 // > GameManager::getFontTexture @ 0x4145d6 // > LevelEditorLayer::createObjectsFromSetup @ 0x475938 // > SelectFontLayer::updateFontLabel @ 0x5d461e // > SecretLayer5::init @ 0x6e62f2 // // 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:47:39 +0000 // int __fastcall GameManager::loadFont(int this, int a2) { const char *v2; // r4 const char *v3; // r1 int v4; // r5 cocos2d::CCString *v5; // r0 cocos2d::CCTextureCache *CString; // r6 cocos2d::CCTextureCache *v7; // r0 cocos2d::CCString *v8; // r0 cocos2d::CCTextureCache *v9; // r6 cocos2d::CCTextureCache *v10; // r0 if ( a2 >= 59 ) a2 = 59; v2 = (const char *)(a2 & ~(a2 >> 31)); v3 = *(const char **)(this + 780); v4 = this; if ( v2 != v3 ) { if ( v3 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", v3); CString = (cocos2d::CCTextureCache *)cocos2d::CCString::getCString(v5); v7 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(CString); this = cocos2d::CCTextureCache::removeTextureForKey(v7, (const char *)CString); } if ( v2 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", v2); v9 = (cocos2d::CCTextureCache *)cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v9); this = cocos2d::CCTextureCache::addImage(v10, (const char *)v9, 0); } *(_DWORD *)(v4 + 780) = v2; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source