// // LevelEditorLayer::updateOptions from 0x1402d2f60 to 0x1402d3613 (1715 bytes) // // 4 xrefs: // > EditorPauseLayer::onResume @ 0x1400dd6c9 // > EditorUI::keyDown @ 0x140126128 // > LevelEditorLayer::init @ 0x1402d2043 // > @ 0x1406d2f30 // // 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 // // Hidden C++ exception states: #wind=18 void LevelEditorLayer::updateOptions(LevelEditorLayer *a1) { GameManager *v2; // rcx bool GameVariable; // al PlayerObject *m_player1; // rcx GameManager *v5; // rcx GameManager *v6; // rcx GameManager *v7; // rcx GameManager *v8; // rcx GameManager *v9; // rcx GameManager *v10; // rcx GameManager *v11; // rcx GameManager *v12; // rcx GameManager *v13; // rcx GameManager *v14; // rcx GameManager *v15; // rcx GameManager *v16; // rcx GameManager *v17; // rcx _BOOL8 v18; // rdx EditorUI *m_editorUI; // rcx EditorUI *v20; // rdi GameManager *v21; // rcx GameManager *v22; // rcx GameManager *v23; // rcx cocos2d::CCSprite *m_background; // rcx GameManager *v25; // rcx bool v26; // di DrawGridLayer *m_drawGridLayer; // rcx __int64 v28; // rax __int64 v29; // r8 void *v30; // [rsp+30h] [rbp+8h] void *v31; // [rsp+30h] [rbp+8h] void *v32; // [rsp+30h] [rbp+8h] void *v33; // [rsp+30h] [rbp+8h] void *v34; // [rsp+30h] [rbp+8h] void *v35; // [rsp+30h] [rbp+8h] void *v36; // [rsp+30h] [rbp+8h] void *v37; // [rsp+30h] [rbp+8h] void *v38; // [rsp+30h] [rbp+8h] void *v39; // [rsp+30h] [rbp+8h] void *v40; // [rsp+30h] [rbp+8h] void *v41; // [rsp+30h] [rbp+8h] void *v42; // [rsp+30h] [rbp+8h] void *v43; // [rsp+30h] [rbp+8h] void *v44; // [rsp+30h] [rbp+8h] void *v45; // [rsp+30h] [rbp+8h] void *v46; // [rsp+30h] [rbp+8h] void *v47; // [rsp+30h] [rbp+8h] v2 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v30 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v30); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = (GameManager *)qword_1406C2ED8; } GameVariable = GameManager::getGameVariable(v2, "0009"); a1->m_ignoreDamage = GameVariable; m_player1 = a1->m_player1; if ( m_player1 ) { m_player1->m_ignoreDamage = GameVariable; a1->m_player2->m_ignoreDamage = a1->m_ignoreDamage; } v5 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v31 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v31); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = (GameManager *)qword_1406C2ED8; } a1->m_drawTriggerBoxes = GameManager::getGameVariable(v5, "0044"); v6 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v32 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v32); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = (GameManager *)qword_1406C2ED8; } a1->m_isDebugDrawEnabled = GameManager::getGameVariable(v6, "0045"); v7 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v33 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v33); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v7 = (GameManager *)qword_1406C2ED8; } a1->m_showGrid = GameManager::getGameVariable(v7, "0038"); v8 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v34 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v34); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v8 = (GameManager *)qword_1406C2ED8; } a1->m_drawEffectLines = GameManager::getGameVariable(v8, "0043"); v9 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v35 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v35); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = (GameManager *)qword_1406C2ED8; } a1->m_showGround = GameManager::getGameVariable(v9, "0037"); v10 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v36 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v36); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v10 = (GameManager *)qword_1406C2ED8; } a1->m_showDurationLines = GameManager::getGameVariable(v10, "0058"); v11 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v37 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v37); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v11 = (GameManager *)qword_1406C2ED8; } a1->m_increaseMaxUndoRedo = GameManager::getGameVariable(v11, "0013"); v12 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v38 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v38); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v12 = (GameManager *)qword_1406C2ED8; } a1->m_previewMode = GameManager::getGameVariable(v12, "0036"); v13 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v39 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v39); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v13 = (GameManager *)qword_1406C2ED8; } a1->m_hideBackground = GameManager::getGameVariable(v13, "0078"); v14 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v40 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v40); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v14 = (GameManager *)qword_1406C2ED8; } a1->m_gv0120 = GameManager::getGameVariable(v14, "0120"); v15 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v41 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v41); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v15 = (GameManager *)qword_1406C2ED8; } a1->m_hideGridOnPlay = GameManager::getGameVariable(v15, "0079"); v16 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v42 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v42); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v16 = (GameManager *)qword_1406C2ED8; } a1->m_layerLockingEnabled = GameManager::getGameVariable(v16, "0103"); a1->m_playtestOrderChanged = 0; v17 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v43 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v43); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v17 = (GameManager *)qword_1406C2ED8; } a1->m_previewShaders = GameManager::getGameVariable(v17, "0158"); m_editorUI = a1->m_editorUI; if ( m_editorUI ) { EditorUI::updateGroupIDLabel(m_editorUI); v20 = a1->m_editorUI; v21 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v44 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v44); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v21 = (GameManager *)qword_1406C2ED8; } v20->m_stickyControlsEnabled = GameManager::getGameVariable(v21, "0097"); v22 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v45 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v45); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v22 = (GameManager *)qword_1406C2ED8; } v20->m_linkControlsDisabled = GameManager::getGameVariable(v22, "0180"); v20->m_enableLinkBtn->setEnabled(v20->m_enableLinkBtn, v20->m_stickyControlsEnabled); v20->m_enableLinkBtn->setVisible(v20->m_enableLinkBtn, v20->m_stickyControlsEnabled); v20->m_linkBtn->setEnabled(v20->m_linkBtn, v20->m_stickyControlsEnabled); v20->m_linkBtn->setVisible(v20->m_linkBtn, v20->m_stickyControlsEnabled); v20->m_unlinkBtn->setEnabled(v20->m_unlinkBtn, v20->m_stickyControlsEnabled); v20->m_unlinkBtn->setVisible(v20->m_unlinkBtn, v20->m_stickyControlsEnabled); v23 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v46 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v46); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v23 = (GameManager *)qword_1406C2ED8; } a1->m_editorUI->m_increaseScale = GameManager::getGameVariable(v23, "0112"); } m_background = a1->m_background; if ( m_background ) { LOBYTE(v18) = !a1->m_hideBackground; m_background->setVisible(m_background, v18); } v25 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v47 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v47); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v25 = (GameManager *)qword_1406C2ED8; } v26 = GameManager::getGameVariable(v25, "0039"); m_drawGridLayer = a1->m_drawGridLayer; if ( m_drawGridLayer ) { v28 = (__int64)m_drawGridLayer->getParent(m_drawGridLayer); v29 = 4294965697LL; if ( v26 ) v29 = 1399; (*(void (__fastcall **)(__int64, DrawGridLayer *, __int64))(*(_QWORD *)v28 + 568LL))(v28, a1->m_drawGridLayer, v29); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source