// // GJBaseGameLayer::swapMiddleground from 0x85810c to 0x8581b0 (164 bytes) // // 2 xrefs: // > ArtTriggerGameObject::triggerObject @ 0x74b330 // > @ 0xac110 // // 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; // w2 GameManager *v5; // x0 m_skipArtReload = a1->m_skipArtReload; a1->m_gameState.m_middleground = a2; if ( !m_skipArtReload && (a2 != GameManager::sharedState()->m_loadedMG || a2 > 0 && !a1->m_middleground) ) { if ( a2 ) { if ( a2 == GameManager::sharedState()->m_loadedMG ) { 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