// // GameManager::loadFont from 0x5ebb48 to 0x5ebbdc (148 bytes) // // 9 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x5d5ec4 // > GameManager::getFontFile @ 0x5ebbfc // > GameManager::getFontFile @ 0x5ebc24 // > GameManager::getFontTexture @ 0x5ebc5c // > GameManager::getFontTexture @ 0x5ebc84 // > LevelEditorLayer::createObjectsFromSetup @ 0x670e60 // > SelectFontLayer::updateFontLabel @ 0x8c6a40 // > SecretLayer5::init @ 0xa9650c // > @ 0xc6d38 // // 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) { int v2; // w19 const char *m_loadedFont; // x1 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; m_loadedFont = (const char *)(unsigned int)a1->m_loadedFont; if ( v2 < 0 ) v2 = 0; if ( v2 != (_DWORD)m_loadedFont ) { if ( (_DWORD)m_loadedFont ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"gjFont%02d.png", m_loadedFont); CString = (char *)cocos2d::CCString::getCString(v5); v6 = cocos2d::CCTextureCache::sharedTextureCache(); 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::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v8, v10, 0); } a1->m_loadedFont = v2; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source