mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user