The current vr runtime path is now passed as argument to

restartvrserver.bat instead of being hardcoded.
This commit is contained in:
2016-11-01 21:35:06 +01:00
parent 4e6e610648
commit 2bf12a4264
2 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -143,7 +143,9 @@ void SteamVRTabController::setForceReprojection(bool value, bool notify) {
void SteamVRTabController::restartSteamVR() {
QProcess::startDetached("cmd.exe /C restartvrserver.bat");
QString cmd = QString("cmd.exe /C restartvrserver.bat \"") + parent->getVRRuntimePathUrl().toLocalFile() + QString("\"");
LOG(INFO) << "SteamVR Restart Command: " << cmd;
QProcess::startDetached(cmd);
}