// // GJBaseGameLayer::createGroundLayer from 0x14020bc60 to 0x14020bd51 (241 bytes) // // 6 xrefs: // > GameManager::finishedLoadingGAsync @ 0x140182e1d // > GJBaseGameLayer::syncBGTextures @ 0x14023aff0 // > LevelEditorLayer::init @ 0x1402d2b83 // > LevelSettingsLayer::selectArtClosed @ 0x140322066 // > PlayLayer::setupHasCompleted @ 0x1403a6a8e // > @ 0x1406ccd20 // // 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 GJBaseGameLayer::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3) { GJGroundLayer *m_groundLayer; // rcx GJGroundLayer *m_groundLayer2; // rcx GJGroundLayer *v8; // rax GJGroundLayer *v9; // rax cocos2d::CCNode *m_objectParent; // rcx m_groundLayer = a1->m_groundLayer; if ( m_groundLayer ) { m_groundLayer->removeFromParent(m_groundLayer); m_groundLayer2 = a1->m_groundLayer2; a1->m_groundLayer = nullptr; m_groundLayer2->removeFromParent(m_groundLayer2); a1->m_groundLayer2 = nullptr; } if ( a2 > 22 ) a2 = 22; v8 = GJGroundLayer::create(a2, a3); a1->m_groundLayer = v8; v8->setTag(v8, a2); a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_groundLayer, 40); v9 = GJGroundLayer::create(a2, a3); m_objectParent = a1->m_objectParent; a1->m_groundLayer2 = v9; m_objectParent->addChild_0(m_objectParent, v9, 40); ((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source