// // GJBaseGameLayer::createGroundLayer from 0x1001de12c to 0x1001de200 (212 bytes) // // 5 xrefs: // > PlayLayer::setupHasCompleted @ 0x100116a80 // > LevelSettingsLayer::selectArtClosed @ 0x10017c270 // > GJBaseGameLayer::asyncGLoaded @ 0x1001de118 // > GJBaseGameLayer::syncBGTextures @ 0x1002021b0 // > LevelEditorLayer::init @ 0x100357594 // // 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 // void __fastcall GJBaseGameLayer::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3) { __int64 v4; // x21 GJGroundLayer *m_groundLayer; // x0 GJGroundLayer *v7; // x0 GJGroundLayer *v8; // x0 LODWORD(v4) = a2; m_groundLayer = a1->m_groundLayer; if ( m_groundLayer ) { ((void (__fastcall *)(GJGroundLayer *))m_groundLayer->removeFromParent)(m_groundLayer); a1->m_groundLayer = nullptr; ((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->removeFromParent)(a1->m_groundLayer2); a1->m_groundLayer2 = nullptr; } if ( (int)v4 >= 22 ) v4 = 22; else v4 = (unsigned int)v4; v7 = GJGroundLayer::create(v4, a3); a1->m_groundLayer = v7; ((void (__fastcall *)(GJGroundLayer *, __int64))v7->setTag)(v7, v4); ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, __int64))a1->m_objectParent->addChild_0)( a1->m_objectParent, a1->m_groundLayer, 40); v8 = GJGroundLayer::create(v4, a3); a1->m_groundLayer2 = v8; ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, __int64))a1->m_objectParent->addChild_0)( a1->m_objectParent, v8, 40); ((void (__fastcall *)(GJGroundLayer *, float))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2, -1.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source