//
// GameManager::unloadBackground from 0x10031838c to 0x100318424 (152 bytes)
//
// 1 xrefs:
// > SupportLayer::onLowDetail @ 0x100192b84
//
// 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::unloadBackground(GameManager *a1)
{
cocos2d::CCString *v2; // x0
const char *CString; // x21
cocos2d::CCTextureCache *v4; // x0
int i; // w21
cocos2d::CCString *v6; // x0
const char *v7; // x20
cocos2d::CCFileUtils *v8; // x0
if ( a1->m_loadedBgID )
{
v2 = (cocos2d::CCString *)sub_100268F4C("game_bg_%02d_001.png", a1->m_loadedBgID);
CString = cocos2d::CCString::getCString(v2);
v4 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v4, CString);
a1->m_loadedBgID = 0;
for ( i = 1; i != 60; ++i )
{
v6 = (cocos2d::CCString *)sub_100268F4C("game_bg_%02d_001.png", i);
v7 = cocos2d::CCString::getCString(v6);
v8 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(cocos2d::CCFileUtils *, const char *))v8->createCCDictionaryWithContentsOfFile)(v8, v7);
}
}
}