// // GameManager::loadFont from 0x32258c to 0x3225e2 (86 bytes) // // 6 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x31ab76 // > GameManager::getFontFile @ 0x3225fa // > GameManager::getFontTexture @ 0x32262e // > LevelEditorLayer::createObjectsFromSetup @ 0x370eea // > SelectFontLayer::updateFontLabel @ 0x4aa27e // > SecretLayer5::init @ 0x59f508 // // 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 GameManager::loadFont(GameManager *a1, int a2) { const char *v2; // r4 const char *m_loadedFont; // r1 cocos2d::CCString *v5; // r0 const char *CString; // r6 cocos2d::CCTextureCache *v7; // r0 cocos2d::CCString *v8; // r0 const char *v9; // r6 cocos2d::CCTextureCache *v10; // r0 if ( a2 >= 59 ) a2 = 59; v2 = (const char *)(a2 & ~(a2 >> 31)); m_loadedFont = (const char *)a1->m_loadedFont; if ( v2 != m_loadedFont ) { if ( m_loadedFont ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", m_loadedFont); CString = cocos2d::CCString::getCString(v5); v7 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v7, CString); } if ( v2 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", v2); v9 = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v10, v9, 0); } a1->m_loadedFont = (int)v2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source