// // GJBaseGameLayer::swapMiddleground from 0x46dc58 to 0x46dcb6 (94 bytes) // // 1 xrefs: // > ArtTriggerGameObject::triggerObject @ 0x3e51ac // // 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::swapMiddleground(GJBaseGameLayer *a1, int a2) { _BOOL4 m_skipArtReload; // r3 GameManager *v5; // r0 m_skipArtReload = a1->m_skipArtReload; a1->m_gameState.m_middleground = a2; if ( !m_skipArtReload && (GameManager::sharedState()->m_loadedMG != a2 || a2 > 0 && !a1->m_middleground) ) { if ( a2 ) { if ( GameManager::sharedState()->m_loadedMG == a2 ) { GJBaseGameLayer::asyncMGLoaded(a1, a2); } else { v5 = GameManager::sharedState(); GameManager::loadMiddlegroundAsync(v5, a2); } } else { GJBaseGameLayer::createMiddleground(a1, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source