//
// GJGameLevel::init from 0x3beb68 to 0x3bec18 (176 bytes)
//
// 0 xrefs:
//
// 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 GJGameLevel::init(GJGameLevel *a1)
{
int v2; // r3
cocos2d::CCDictionary *v3; // r0
cocos2d::CCDictionary *v4; // r5
cocos2d::CCDictionary *m_lastBuildSave; // r0
sub_7753D4((int)&a1->m_levelName, (char *)&unk_939830);
sub_7753D4((int)&a1->m_levelDesc, (char *)&unk_939830);
sub_7753D4((int)&a1->m_levelString, (char *)&unk_939830);
sub_7753D4((int)&a1->m_personalBests, (char *)&unk_939830);
a1->m_levelVersion = 1;
a1->m_levelType = 0;
v2 = dword_AC5F54;
a1->m_M_ID = dword_AC5F54;
dword_AC5F54 = v2 + 1;
GJGameLevel::setAttempts(a1, 0);
GJGameLevel::setJumps(a1, 0);
GJGameLevel::setClicks(a1, 0);
GJGameLevel::setAttemptTime(a1, 0);
a1->m_chk = 0;
a1->m_coins = 0;
GJGameLevel::setStars(a1, 0);
GJGameLevel::setDemon(a1, 0);
a1->m_dontSave = 0;
a1->m_levelNotDownloaded = 0;
v3 = cocos2d::CCDictionary::create();
v4 = v3;
if ( a1->m_lastBuildSave != v3 )
{
if ( v3 )
cocos2d::CCObject::retain(v3);
m_lastBuildSave = a1->m_lastBuildSave;
if ( m_lastBuildSave )
cocos2d::CCObject::release(m_lastBuildSave);
a1->m_lastBuildSave = v4;
}
return 1;
}