Skip to content

Commit

Permalink
Editor: Run test with selected game pack
Browse files Browse the repository at this point in the history
Do test with that game pack that is actually selected by integration dialogue.
  • Loading branch information
Wohlstand committed Jan 19, 2025
1 parent 0b199de commit 84b8835
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Editor/testing/thextech_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,16 @@ bool TheXTechEngine::doTestLevelIPC(const LevelData &d)
}
}

if(m_caps.arguments.contains("c"))
{
#if __APPLE__
if(!ConfStatus::configDataPath.endsWith(".app/Content/Resources/assets/", Qt::CaseInsensitive))
args << "-c" << ConfStatus::configDataPath;
#else
args << "-c" << ConfStatus::configDataPath;
#endif
}

if(m_caps.features.contains("vsync-flag") && m_vsyncEnable)
args << "--vsync";

Expand Down Expand Up @@ -1407,6 +1417,16 @@ bool TheXTechEngine::doTestLevelFile(const QString &levelFile)
}
}

if(m_caps.arguments.contains("c"))
{
#if __APPLE__
if(!ConfStatus::configDataPath.endsWith(".app/Content/Resources/assets/", Qt::CaseInsensitive))
args << "-c" << ConfStatus::configDataPath;
#else
args << "-c" << ConfStatus::configDataPath;
#endif
}

if(m_caps.features.contains("vsync-flag") && m_vsyncEnable)
args << "--vsync";

Expand Down Expand Up @@ -1537,6 +1557,16 @@ bool TheXTechEngine::doTestWorldFile(const QString &worldFile)
}
}

if(m_caps.arguments.contains("c"))
{
#if __APPLE__
if(!ConfStatus::configDataPath.endsWith(".app/Contents/Resources/assets/", Qt::CaseInsensitive))
args << "-c" << ConfStatus::configDataPath;
#else
args << "-c" << ConfStatus::configDataPath;
#endif
}

if(m_caps.features.contains("vsync-flag") && m_vsyncEnable)
args << "--vsync";

Expand Down

0 comments on commit 84b8835

Please sign in to comment.