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
This commit is contained in:
ichooseyou authored and IChooseYou committed 2026-02-17 12:32:44 -07:00
1 parent f041761b62
commit 91633169a0
1 file changed
+4
+4
View File
@@ -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() {