// // GameManager::unloadBackground from 0x5ebd78 to 0x5ebe14 (156 bytes) // // 2 xrefs: // > SupportLayer::onLowDetail @ 0x7db738 // > @ 0xb8698 // // 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::unloadBackground(GameManager *a1) { const char *m_loadedBgID; // x1 unsigned int v3; // w19 cocos2d::CCString *v4; // x0 cocos2d::CCTextureCache *v5; // x0 const char *v6; // x1 cocos2d::CCString *v7; // x0 cocos2d::CCFileUtils *v8; // x0 char *CString; // [xsp+38h] [xbp+38h] char *v10; // [xsp+38h] [xbp+38h] m_loadedBgID = (const char *)(unsigned int)a1->m_loadedBgID; if ( (_DWORD)m_loadedBgID ) { v3 = 1; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"game_bg_%02d_001.png", m_loadedBgID); CString = (char *)cocos2d::CCString::getCString(v4); v5 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::removeTextureForKey(v5, CString); a1->m_loadedBgID = 0; do { v6 = (const char *)v3++; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v6); v10 = (char *)cocos2d::CCString::getCString(v7); v8 = cocos2d::CCFileUtils::sharedFileUtils(); v8->createCCDictionaryWithContentsOfFile(v8, (const std::string *)v10); } while ( v3 != 60 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source