// // GameManager::loadFont from 0x716548 to 0x7165dc (148 bytes) // // 9 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x700a90 // > GameManager::getFontFile @ 0x7165fc // > GameManager::getFontFile @ 0x716624 // > GameManager::getFontTexture @ 0x71665c // > GameManager::getFontTexture @ 0x716684 // > LevelEditorLayer::createObjectsFromSetup @ 0x7ae380 // > SelectFontLayer::updateFontLabel @ 0xa1f5c0 // > SecretLayer5::init @ 0xbc88fc // > @ 0x102bb0 // // 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:52:16 +0000 // __int64 __fastcall GameManager::loadFont(__int64 this, int a2) { int v2; // w19 const char *v3; // x1 __int64 v4; // x20 cocos2d::CCString *v5; // x0 cocos2d::CCTextureCache *v6; // x0 cocos2d::CCString *v7; // x0 cocos2d::CCTextureCache *v8; // x0 char *CString; // [xsp+28h] [xbp+28h] char *v10; // [xsp+28h] [xbp+28h] if ( a2 > 59 ) v2 = 59; else v2 = a2; v3 = (const char *)*(unsigned int *)(this + 992); if ( v2 < 0 ) v2 = 0; if ( v2 != (_DWORD)v3 ) { v4 = this; if ( (_DWORD)v3 ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", v3); CString = (char *)cocos2d::CCString::getCString(v5); v6 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)CString); this = cocos2d::CCTextureCache::removeTextureForKey(v6, CString); } if ( v2 ) { v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"gjFont%02d.png", (const char *)(unsigned int)v2); v10 = (char *)cocos2d::CCString::getCString(v7); v8 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache((cocos2d::CCTextureCache *)v10); this = cocos2d::CCTextureCache::addImage(v8, v10, 0); } *(_DWORD *)(v4 + 992) = v2; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source