//
// GameManager::reloadAll from 0x10031d910 to 0x10031d9b4 (164 bytes)
//
// 1 xrefs:
// > VideoOptionsLayer::onApply @ 0x1000f0efc
//
// 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::reloadAll(GameManager *a1, bool a2, bool a3, bool a4, bool a5, bool a6)
{
cocos2d::CCDirector *v7; // x0
cocos2d::CCDirector *v8; // x20
cocos2d::CCScene *v9; // x0
cocos2d::CCActionManager *m_pActionManager; // x20
cocos2d::CCDelayTime *v11; // x21
char v12; // w0
__int64 v13; // x1
__int64 v14; // x2
__int64 v15; // x3
__int64 v16; // x4
__int64 v17; // x5
__int64 v18; // x6
__int64 v19; // x7
cocos2d::CCSequence *v20; // x1
cocos2d::SEL_CallFunc v21; // 0:x1.16
a1->m_switchModes = a2;
a1->m_toFullscreen = a3;
a1->m_reloading = a4;
a1->m_fix = a5;
a1->m_reloadTextures = 1;
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::popToRootScene(v7);
v8 = cocos2d::CCDirector::sharedDirector();
v9 = cocos2d::CCScene::create();
cocos2d::CCDirector::replaceScene(v8, v9);
m_pActionManager = a1->m_pActionManager;
v11 = cocos2d::CCDelayTime::create(0.0);
v21.ptr = (void (*)(void))GameManager::reloadAllStep2;
v21.adj = 0;
v12 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v21);
v20 = sub_10018A494(v11, v13, v14, v15, v16, v17, v18, v19, v12);
cocos2d::CCActionManager::addAction(m_pActionManager, v20, a1, 0);
}