// // GJBaseGameLayer::createMiddleground from 0x857294 to 0x857314 (128 bytes) // // 7 xrefs: // > PlayLayer::setupHasCompleted @ 0x5dc428 // > LevelEditorLayer::init @ 0x67ca18 // > GJBaseGameLayer::asyncMGLoaded @ 0x8580f8 // > GJBaseGameLayer::swapMiddleground @ 0x858184 // > GJBaseGameLayer::syncBGTextures @ 0x866a70 // > LevelSettingsLayer::selectArtClosed @ 0xa34710 // > @ 0x9bbc8 // // 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 // // local variable allocation has failed, the output may be wrong! void GJBaseGameLayer::createMiddleground(GJBaseGameLayer *a1, int a2) { __int64 v3; // x1 GJMGLayer *v4; // x0 GJMGLayer_vtbl *v5; // x2 int v6; // [xsp+28h] [xbp+28h] __int64 v7; // [xsp+28h] [xbp+28h] if ( a1->m_middleground ) { v6 = a2; GJBaseGameLayer::removeMiddleground(a1); a2 = v6; } if ( a2 > 0 ) { if ( a2 > 3 ) *(_QWORD *)&a2 = 3; else v3 = (unsigned int)a2; v7 = *(_QWORD *)&a2; v4 = GJMGLayer::create(a2); v5 = v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_middleground = v4; v5->setTag(v4, v7); a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_middleground, -39); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source