From 91633169a02bd4f402e83e78ad2201c64fcd1e0a Mon Sep 17 00:00:00 2001 From: ichooseyou Date: Tue, 17 Feb 2026 12:32:44 -0700 Subject: [PATCH] fix: guard Windows-only selfTest code for Linux build - Wrap DWORD/GetCurrentProcessId and KUSER_SHARED_DATA example behind Q_OS_WIN - Linux selfTest falls back to project_new() with basic hex class --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index a389c37..f09b273 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -809,6 +809,7 @@ void MainWindow::newDocument() { } void MainWindow::selfTest() { +#ifdef Q_OS_WIN // Auto-open KUSER_SHARED_DATA example if available QString exPath = QCoreApplication::applicationDirPath() + "/examples/KUSER_SHARED_DATA.rcx"; @@ -825,6 +826,9 @@ void MainWindow::selfTest() { QString target = QString("%1:Reclass.exe").arg(pid); ctrl->attachViaPlugin(QStringLiteral("processmemory"), target); } +#else + project_new(); +#endif } void MainWindow::openFile() {