//
// GraphicsReloadLayer::init from 0x427288 to 0x427300 (120 bytes)
//
// 1 xrefs:
// > GraphicsReloadLayer::create @ 0x427398
//
// 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
//
bool GraphicsReloadLayer::init(
GraphicsReloadLayer *a1,
cocos2d::TextureQuality a2,
cocos2d::CCSize a3,
bool a4,
bool a5,
bool a6,
bool a7)
{
float width; // r7
char height_low; // r6
_BOOL4 v11; // r5
cocos2d::CCSequence *v12; // r7
cocos2d::CCFiniteTimeAction *v13; // r0
int v14; // r3
cocos2d::CCAction *v15; // r0
width = a3.width;
height_low = LOBYTE(a3.height);
v11 = cocos2d::CCLayer::init(a1);
if ( v11 )
{
a1->m_quality = a2;
cocos2d::CCSize::operator=(&a1->m_resolution, LODWORD(width));
a1->m_fullscreen = height_low;
a1->m_borderless = a4;
a1->m_fix = a5;
a1->m_changedResolution = a6;
v12 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.1);
v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, GraphicsReloadLayer::performReload, 0);
v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0, v14, GraphicsReloadLayer::performReload, 0);
cocos2d::CCNode::runAction(a1, v15);
}
return v11;
}