// // LevelEditorLayer::updateEditor from 0x67be18 to 0x67c160 (840 bytes) // // 3 xrefs: // > @ 0x97098 // > LevelEditorLayer::init @ 0x67cb50 // > @ 0x122d288 // // 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 LevelEditorLayer::updateEditor(LevelEditorLayer *a1, float a2) { float *v3; // x21 float ModifiedDelta; // s8 int m_unk3b24; // w0 _BOOL4 v6; // w0 EditorUI *m_editorUI; // x0 float v8; // s0 cocos2d::CCNode *m_inShaderParent; // x22 void (__fastcall *setVisible)(cocos2d::CCNode *__hidden, bool); // x23 cocos2d::CCNode *m_aboveShaderParent; // x22 void (__fastcall *v12)(cocos2d::CCNode *__hidden, bool); // x23 float v13; // s0 cocos2d::CCLayer *m_objectLayer; // x1 __int64 v15; // x0 float m_cameraZoom; // s1 float m_unkFloat4; // s0 float v18; // s2 float v19; // s0 float v20; // s1 float v21; // s0 float v22; // s1 __int64 v23; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v24; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v25[2]; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v26; // 0:s0.4,4:s1.4 v3 = &a1->m_varianceValues.__elems_[1975]; ModifiedDelta = a2; if ( a1->m_unk3b22 ) { m_unk3b24 = a1->m_unk3b24; *((_BYTE *)v3 + 2826) = 0; a1->m_unk3b24 = m_unk3b24 + 1; } v6 = a1->m_playbackMode == Playing; *((_BYTE *)v3 + 696) = v6; if ( v6 ) { a1->update(a1, *(long double *)&a2); LABEL_5: a1->m_drawGridLayer->update(a1->m_drawGridLayer, ModifiedDelta); LevelEditorLayer::updateGridLayer(a1); return; } GJBaseGameLayer::tryResumeAudio(a1); if ( *((_BYTE *)v3 + 2824) ) ModifiedDelta = GJBaseGameLayer::getModifiedDelta(a1, ModifiedDelta); else a1->m_extraDelta = 0.0; if ( ModifiedDelta > 0.0 ) { m_editorUI = a1->m_editorUI; a1->m_gameState.m_totalTime = a1->m_gameState.m_totalTime + ModifiedDelta; if ( m_editorUI ) { clock_gettime(0, (struct timespec *)v25); v8 = (double)(__int64)v25[0] + (double)(__int64)v25[1] / 1000000000.0 - a1->m_editorUI->m_keyTime; if ( v8 < 10.0 ) a1->m_sessionTime = a1->m_sessionTime + ModifiedDelta; } GJBaseGameLayer::updateBGArtSpeed(a1, 0.1, 0.1); LevelEditorLayer::updateGameObjects(a1); a1->updateVisibility(a1, ModifiedDelta); LevelEditorLayer::updateGridLayerParent(a1); m_inShaderParent = a1->m_inShaderParent; setVisible = m_inShaderParent->setVisible; if ( m_inShaderParent->getChildrenCount(m_inShaderParent) <= 1 ) ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_inShaderObjectLayer->getChildrenCount)(a1->m_inShaderObjectLayer); ((void (__fastcall *)(cocos2d::CCNode *))setVisible)(m_inShaderParent); m_aboveShaderParent = a1->m_aboveShaderParent; v12 = m_aboveShaderParent->setVisible; if ( m_aboveShaderParent->getChildrenCount(m_aboveShaderParent) <= 1 ) ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_aboveShaderObjectLayer->getChildrenCount)(a1->m_aboveShaderObjectLayer); ((void (__fastcall *)(cocos2d::CCNode *))v12)(m_aboveShaderParent); GJBaseGameLayer::updateGradientLayers(a1); GJBaseGameLayer::updateExtraGameLayers(a1); a1->m_groundLayer2->setVisible(a1->m_groundLayer2, 0); v13 = a1->m_objectLayer->getScale(a1->m_objectLayer); m_objectLayer = a1->m_objectLayer; a1->m_gameState.m_cameraZoom = v13; v15 = (__int64)m_objectLayer->getPosition(m_objectLayer); cocos2d::CCPoint::operator-(&v23, v15, &prevGamelayerPos); cocos2d::CCPoint::operator*(&v23, 1.0 / a1->m_gameState.m_cameraZoom); cocos2d::CCPoint::operator-(&v24, &a1->m_gameState.m_cameraPosition2, v25); m_cameraZoom = a1->m_gameState.m_cameraZoom; m_unkFloat4 = a1->m_gameState.m_unkFloat4; if ( m_cameraZoom != m_unkFloat4 ) cocos2d::CCPoint::operator=(&v24, m_unkFloat4, m_cameraZoom); cocos2d::CCPoint::CCPoint(v25, &v24); v26.x = a1->m_gameState.m_cameraZoom; GJBaseGameLayer::updateCameraBGArt(a1, v26, v18); a1->m_gameState.m_unkFloat4 = a1->m_gameState.m_cameraZoom; cocos2d::CCPoint::operator=(&a1->m_gameState.m_cameraPosition2, v19, v20); v21 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_objectLayer->getPosition)(a1->m_objectLayer); cocos2d::CCPoint::operator=(&prevGamelayerPos, v21, v22); goto LABEL_5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source