//
// GameManager::unloadBackground from 0x3226e0 to 0x32272e (78 bytes)
//
// 1 xrefs:
// > SupportLayer::onLowDetail @ 0x42ca3a
//
// 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; // r1
cocos2d::CCString *v3; // r0
const char *CString; // r6
cocos2d::CCTextureCache *v5; // r0
const char *v6; // r4
cocos2d::CCString *v7; // r0
const char *v8; // r6
cocos2d::CCFileUtils *v9; // r0
m_loadedBgID = (const char *)a1->m_loadedBgID;
if ( m_loadedBgID )
{
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"game_bg_%02d_001.png",
m_loadedBgID);
CString = cocos2d::CCString::getCString(v3);
v5 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v5, CString);
a1->m_loadedBgID = 0;
v6 = (char *)&dword_0 + 1;
do
{
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"game_bg_%02d_001.png", v6++);
v8 = cocos2d::CCString::getCString(v7);
v9 = cocos2d::CCFileUtils::sharedFileUtils();
v9->createCCDictionaryWithContentsOfFile(v9, (const std::string *)v8);
}
while ( v6 != (const char *)off_3C );
}
}