//
// cocos2d::CCScene::init from 0x100240438 to 0x100240490 (88 bytes)
//
// 5 xrefs:
// > cocos2d::CCTransitionScene::initWithDuration @ 0x1001cdae0
// > ??> @ 0x1007baac0
// > ??> @ 0x1007bae50
// > ??> @ 0x1007bb210
// > ??> @ 0x1007ca1b8
//
// 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 __fastcall cocos2d::CCScene::init(cocos2d::CCScene *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCDirector *v3; // x19
_BYTE v5[8]; // [xsp+8h] [xbp-18h] BYREF
cocos2d::CCSize WinSize; // 0:kr00_8.8
v2 = cocos2d::CCDirector::sharedDirector();
v3 = v2;
if ( v2 )
{
WinSize = cocos2d::CCDirector::getWinSize(v2);
((void (__fastcall *)(cocos2d::CCScene *, _BYTE *, float, float))a1->setContentSize)(
a1,
v5,
WinSize.width,
WinSize.height);
}
return v3 != nullptr;
}