// // GJBaseGameLayer::createMiddleground from 0x46d226 to 0x46d26c (70 bytes) // // 6 xrefs: // > PlayLayer::setupHasCompleted @ 0x31bca0 // > LevelEditorLayer::init @ 0x376b4a // > GJBaseGameLayer::asyncMGLoaded @ 0x46dc4a // > GJBaseGameLayer::swapMiddleground @ 0x46dc8a // > GJBaseGameLayer::syncBGTextures @ 0x476f70 // > LevelSettingsLayer::selectArtClosed @ 0x56fa74 // // 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::createMiddleground(GJBaseGameLayer *a1, int a2) { GJMGLayer *v4; // r0 GJMGLayer_vtbl *v5; // r3 if ( a1->m_middleground ) GJBaseGameLayer::removeMiddleground(a1); if ( a2 > 0 ) { if ( a2 >= 3 ) a2 = (int)&dword_0 + 3; v4 = GJMGLayer::create(a2); v5 = v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_middleground = v4; v5->setTag(v4, a2); a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_middleground, -39); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source