//
// cocos2d::CCScene::init from 0x180051c10 to 0x180051c57 (71 bytes)
//
// 42 xrefs:
// > cocos2d::CCTransitionScene::initWithDuration @ 0x180054a6a
// > ??> @ 0x1800ee930
// > ??> @ 0x1800eecb8
// > ??> @ 0x1800ef038
// > ??> @ 0x1800ef3c0
// > ??> @ 0x1800ef740
// > ??> @ 0x1800efac0
// > ??> @ 0x1800efe60
// > ??> @ 0x1800f0200
// > ??> @ 0x1800f05a0
// > ??> @ 0x1800f0940
// > ??> @ 0x1800f0ce0
// > ??> @ 0x1800f1080
// > ??> @ 0x1800f1420
// > ??> @ 0x1800f17c0
// > ??> @ 0x1800f1b50
// > ??> @ 0x1800f1ed8
// > ??> @ 0x1800f2260
// > ??> @ 0x1800f25e8
// > ??> @ 0x1800f2970
// > ??> @ 0x1800f2cf8
// > ??> @ 0x1800f3080
// > ??> @ 0x1800f3408
// > ??> @ 0x1800f3788
// > ??> @ 0x1800f3b18
// > ??> @ 0x1800f3eb0
// > ??> @ 0x1800f4248
// > ??> @ 0x1800f45e0
// > ??> @ 0x1800f4978
// > ??> @ 0x1800f4d10
// > ??> @ 0x1800f50c0
// > ??> @ 0x1800f5448
// > ??> @ 0x1800f57d8
// > ??> @ 0x1800f5b68
// > ??> @ 0x1800f5ef8
// > ??> @ 0x1800f6288
// > ??> @ 0x1800f6618
// > ??> @ 0x1800f69a8
// > ??> @ 0x1801384ec
// > ??> @ 0x1801384fc
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b22d4
//
// 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 *this)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCScene_vtbl *v3; // rbx
struct cocos2d::CCSize WinSize; // rax
v2 = cocos2d::CCDirector::sharedDirector();
if ( v2 )
{
v3 = this->__vftable;
WinSize = cocos2d::CCDirector::getWinSize(v2);
((void (__fastcall *)(cocos2d::CCScene *, struct cocos2d::CCSize))v3->setContentSize)(this, WinSize);
LOBYTE(v2) = 1;
}
return (char)v2;
}