// // GJBaseGameLayer::syncBGTextures from 0x100202154 to 0x10020220c (184 bytes) // // 3 xrefs: // > PlayLayer::resetLevel @ 0x10012237c // > LevelEditorLayer::onPlaytest @ 0x100362ea0 // > LevelEditorLayer::onStopPlaytest @ 0x100363270 // // 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::syncBGTextures(GJBaseGameLayer *a1) { int v2; // w0 int m_background; // w1 int v4; // w0 int m_ground; // w1 GJMGLayer *m_middleground; // x0 int v7; // w0 int v8; // w1 v2 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_background->getTag)(a1->m_background); m_background = a1->m_gameState.m_background; if ( v2 != m_background ) GJBaseGameLayer::createBackground(a1, m_background); v4 = ((__int64 (__fastcall *)(GJGroundLayer *))a1->m_groundLayer->getTag)(a1->m_groundLayer); m_ground = a1->m_gameState.m_ground; if ( v4 != m_ground ) GJBaseGameLayer::createGroundLayer(a1, m_ground, a1->m_levelSettings->m_groundLineIndex); m_middleground = a1->m_middleground; if ( !m_middleground ) { v8 = a1->m_gameState.m_middleground; goto LABEL_10; } v7 = ((__int64 (__fastcall *)(GJMGLayer *))m_middleground->getTag)(m_middleground); v8 = a1->m_gameState.m_middleground; if ( v7 == v8 ) { if ( a1->m_middleground ) return; v8 = v7; LABEL_10: if ( v8 < 1 ) return; } GJBaseGameLayer::createMiddleground(a1, v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source