// // GameManager::loadFont from 0x100383020 to 0x1003830c4 (164 bytes) // // 6 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x1000ad265 // > LevelEditorLayer::createObjectsFromSetup @ 0x1000dce16 // > SelectFontLayer::updateFontLabel @ 0x10029a666 // > GameManager::getFontFile @ 0x1003830ee // > GameManager::getFontTexture @ 0x10038313e // > SecretLayer5::init @ 0x10047abaf // // 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; // eax int v3; // r14d int m_loadedFont; // eax cocos2d::CCString *v5; // rax const char *CString; // r15 cocos2d::CCTextureCache *v7; // rax cocos2d::CCString *v8; // rax const char *v9; // r15 cocos2d::CCTextureCache *v10; // rax char v11; // [rsp+0h] [rbp-20h] v2 = 59; if ( a2 < 59 ) v2 = a2; v3 = 0; if ( v2 > 0 ) v3 = v2; m_loadedFont = a1->m_loadedFont; if ( v3 != m_loadedFont ) { if ( m_loadedFont ) { v5 = (cocos2d::CCString *)sub_1007AB580("gjFont%02d.png", v11); CString = cocos2d::CCString::getCString(v5); v7 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v7, CString); } if ( a2 > 0 ) { v8 = (cocos2d::CCString *)sub_1007AB580("gjFont%02d.png", v11); v9 = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v10, v9, 0); } a1->m_loadedFont = v3; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source