// // UILayer::editorPlaytest from 0x1004c36e0 to 0x1004c3863 (387 bytes) // // 5 xrefs: // > LevelEditorLayer::onPlaytest @ 0x1000c5a50 // > LevelEditorLayer::onPausePlaytest @ 0x1000c68f5 // > LevelEditorLayer::onResumePlaytest @ 0x1000c6add // > LevelEditorLayer::onStopPlaytest @ 0x1000c6c25 // > UILayer::enableEditorMode @ 0x1004c36af // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:06 +0000 // __int64 __fastcall UILayer::editorPlaytest(__int64 a1, unsigned __int8 a2) { __int64 v2; // rax __int64 v4; // rax unsigned int *v5; // rax __int64 *v6; // r13 __int64 *v7; // r15 __int64 v8; // r12 __int64 v9; // rdi __int64 v10; // rdi __int64 v11; // rdi __int64 v12; // rax __int64 v13; // rax __int64 v15; // rax _QWORD v16[6]; // [rsp+0h] [rbp-30h] BYREF v16[0] = v2; *(_QWORD *)(a1 + 584) = -1; *(_WORD *)(a1 + 578) = 0; *(_BYTE *)(a1 + 580) = 0; v4 = *(_QWORD *)(a1 + 616); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((__int64 **)v5 + 2); v7 = &v6[*v5 - 1]; do { v8 = *v6; if ( !*v6 ) break; *(_DWORD *)(v8 + 352) = -1; *(_WORD *)(v8 + 383) = 0; v9 = *(_QWORD *)(v8 + 320); if ( v9 ) { BYTE6(v16[0]) = -1; WORD2(v16[0]) = -1; (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v9 + 960LL))(v9, (char *)v16 + 4); } v10 = *(_QWORD *)(v8 + 8LL * (*(unsigned __int8 *)(v8 + 381) ^ 1u) + 320); if ( v10 ) { BYTE2(v16[0]) = -1; LOWORD(v16[0]) = -1; (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v10 + 960LL))(v10, v16); } ++v6; } while ( v6 <= v7 ); } } UILayer::toggleMenuVisibility(a1, a2); v11 = a1; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 344LL))(a1, a2); *(_BYTE *)(a1 + 627) = a2; if ( a2 ) { v11 = a1; UILayer::resolveLevelControls(a1); } if ( (*(_BYTE *)(a1 + 626) != 1 || *(_BYTE *)(a1 + 627) == 1) && *(_BYTE *)(a1 + 596) == 1 && (v12 = *(_QWORD *)(a1 + 640)) != 0 && (*(_QWORD *)(v12 + 96) || *(_QWORD *)(v12 + 136)) ) { v13 = GJKeybindManager::sharedState(v11); return GJKeybindManager::applyMovementOverride(v13, *(_QWORD *)(a1 + 640) + 72LL, *(_QWORD *)(a1 + 640) + 112LL); } else { v15 = GJKeybindManager::sharedState(v11); return GJKeybindManager::clearMovementOverride(v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source