Skip to content

Commit

Permalink
Ignore process check if rocket launch specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mhtvsSFrpHdE committed Feb 12, 2023
1 parent 42938ad commit 8aeb274
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion qpp/prefetch/Source/Core/Skip/skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "..\..\Setting\setting.h"
#include "..\..\Setting\const_setting.h"
#include "..\StartProcess\start_process.h"
#include "..\..\Global\global.h"

QString Core_Skip::assumeProcess;
QStringList Core_Skip::skipProcessList;
Expand All @@ -17,9 +18,17 @@ void Core_Skip::init()

bool Core_Skip::check()
{
// Default to true if skipProcessList is empty
// If skipProcessList is empty
// Default to true
bool processNotRunning = true;

// Ignore check when rocket launch specified
bool rocketLaunch = Global::commandLineArgumentAddress->getRocketLaunch();
if (rocketLaunch)
{
return processNotRunning;
}

for (int i = 0; i < skipProcessList.size(); ++i)
{
auto skipProcessName = skipProcessList[i];
Expand Down

0 comments on commit 8aeb274

Please sign in to comment.