//
// CCBlockLayer::init from 0x575020 to 0x575104 (228 bytes)
//
// 7 xrefs:
// > CCBlockLayer::create @ 0x575174
// > PauseLayer::init @ 0x6c6bcc
// > EditorPauseLayer::init @ 0x78b414
// > ??> @ 0x8cf28
// > ??> @ 0x1137d70
// > ??> @ 0x1158340
// > ??> @ 0x11776d0
//
// 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 CCBlockLayer::init(CCBlockLayer *a1)
{
char v2; // w21
cocos2d::CCDirector *v3; // x0
cocos2d::_ccColor4B v5; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
v5.r = 0;
v5.g = 0;
v5.b = 0;
v5.a = 125;
v2 = cocos2d::CCLayerColor::initWithColor(a1, &v5);
if ( v2 )
{
CCBlockLayer::incrementForcePrio(a1);
a1->setTouchEnabled(a1, 1);
a1->setKeypadEnabled(a1, 1);
a1->setKeyboardEnabled(a1, 1);
v3 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v3);
((void (__fastcall *)(CCBlockLayer *, float, float))a1->customSetup)(a1, WinSize.width, WinSize.height);
a1->m_closeOnHide = 1;
}
return v2;
}