// // EditorUI::onPause from 0x10002a6d0 to 0x10002a877 (423 bytes) // // 4 xrefs: // > EditorUI::keyBackClicked @ 0x10003ea05 // > sub_10003EA10 @ 0x10003ea1c // > EditorUI::keyDown @ 0x100050534 // > EditorUI::init @ 0x10000a525 // // 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 EditorUI::onPause(EditorUI *a1, cocos2d::CCObject *a2) { __int64 v2; // rax LevelEditorLayer *m_editorLayer; // rdi LevelEditorLayer *v5; // rax __int64 p_m_lastCameraPos; // r14 __int64 v7; // rax double v8; // xmm0_8 LevelEditorLayer *v9; // rax GJGameLevel *m_level; // r14 GJGameLevel *v11; // r14 LevelEditorLayer *v12; // rax GJGameLevel *v13; // rcx unsigned int v14; // r14d EditButtonBar *v15; // rax GJGameLevel *v16; // r15 int Page; // eax EditorPauseLayer *v18; // r14 __int64 v19; // rax _QWORD v20[5]; // [rsp-28h] [rbp-28h] BYREF if ( !a1->m_isPaused ) { v20[0] = v2; m_editorLayer = a1->m_editorLayer; if ( m_editorLayer->m_playbackMode == Not ) { a1->m_editorZoom = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCObject *))m_editorLayer->m_objectLayer->getScale)( m_editorLayer->m_objectLayer, a2); m_editorLayer = a1->m_editorLayer; } LevelEditorLayer::updateKeyframeObjects(m_editorLayer); EditorUI::onStopPlaytest(a1, a2); EditorUI::updatePlaybackBtn(a1); v5 = a1->m_editorLayer; p_m_lastCameraPos = (__int64)&v5->m_level->m_lastCameraPos; v7 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))v5->m_objectLayer->getPosition)(v5->m_objectLayer); v8 = sub_10028CC60(v20, v7); sub_10028CC90(p_m_lastCameraPos, v20); v9 = a1->m_editorLayer; m_level = v9->m_level; m_level->m_lastEditorZoom = ((float (__fastcall *)(cocos2d::CCLayer *, double))v9->m_objectLayer->getScale)( v9->m_objectLayer, v8); v11 = a1->m_editorLayer->m_level; v11->m_lastBuildPage = EditButtonBar::getPage(a1->m_createButtonBar); v12 = a1->m_editorLayer; v13 = v12->m_level; v13->m_lastBuildTab = a1->m_selectedTab; v13->m_lastBuildGroupID = v12->m_currentLayer; if ( (unsigned int)sub_100720070(a1->m_createButtonBars) ) { v14 = 0; do { v15 = (EditButtonBar *)sub_1007200C0(a1->m_createButtonBars, v14); v16 = a1->m_editorLayer->m_level; Page = EditButtonBar::getPage(v15); GJGameLevel::setLastBuildPageForTab(v16, Page, v14++); } while ( v14 < (unsigned int)sub_100720070(a1->m_createButtonBars) ); } v18 = EditorPauseLayer::create(a1->m_editorLayer); v19 = ((__int64 (__fastcall *)(EditorUI *))a1->getParent)(a1); (*(void (__fastcall **)(__int64, EditorPauseLayer *, __int64))(*(_QWORD *)v19 + 448LL))(v19, v18, 100); a1->m_isPaused = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source