// // GameManager::loadFont from 0x100318128 to 0x1003181d0 (168 bytes) // // 6 xrefs: // > SecretLayer5::init @ 0x1000748d8 // > PlayLayer::prepareCreateObjectsFromSetup @ 0x10011632c // > SelectFontLayer::updateFontLabel @ 0x1002d2320 // > GameManager::getFontFile @ 0x1003181f8 // > GameManager::getFontTexture @ 0x100318264 // > LevelEditorLayer::createObjectsFromSetup @ 0x100357ef0 // // 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 __fastcall GameManager::loadFont(GameManager *a1, int a2) { int v2; // w8 int v3; // w22 int m_loadedFont; // w8 cocos2d::CCString *v7; // x0 const char *CString; // x21 cocos2d::CCTextureCache *v9; // x0 cocos2d::CCString *v10; // x0 const char *v11; // x20 cocos2d::CCTextureCache *v12; // x0 if ( a2 >= 59 ) v2 = 59; else v2 = a2; v3 = v2 & ~(v2 >> 31); m_loadedFont = a1->m_loadedFont; if ( v3 != m_loadedFont ) { if ( m_loadedFont ) { v7 = (cocos2d::CCString *)sub_100268F4C("gjFont%02d.png", a1->m_loadedFont); CString = cocos2d::CCString::getCString(v7); v9 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v9, CString); } if ( a2 >= 1 ) { v10 = (cocos2d::CCString *)sub_100268F4C("gjFont%02d.png", v3); v11 = cocos2d::CCString::getCString(v10); v12 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v12, v11, 0); } a1->m_loadedFont = v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source