//
// GJGameLoadingLayer::init from 0x47cb98 to 0x47cc4c (180 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::create @ 0x47ccb4
//
// 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 GJGameLoadingLayer::init(GJGameLoadingLayer *a1, GJGameLevel *a2, bool a3)
{
_BOOL4 v6; // r7
cocos2d::CCDirector *v7; // r0
cocos2d::CCLabelBMFont *v8; // r4
void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
cocos2d::CCSize v12; // [sp+4h] [bp-14h] BYREF
cocos2d::CCPoint v13; // [sp+Ch] [bp-Ch] BYREF
v6 = cocos2d::CCLayer::init(a1);
if ( v6 )
{
if ( a2 )
{
a1->m_level = a2;
cocos2d::CCObject::retain(a2);
}
a1->m_editor = a3;
v7 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v12, v7);
v8 = cocos2d::CCLabelBMFont::create();
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v8->setScale)(v8, 1060320051);
a1->addChild_0(a1, v8, 1);
setAnchorPoint = v8->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v13, 1.0, 0.0);
setAnchorPoint(v8, &v13);
setPosition = v8->setPosition;
cocos2d::CCPoint::CCPoint(&v13, v12.width - 20.0, 20.0);
setPosition(v8, &v13);
}
return v6;
}