MCPcopy Create free account
hub / github.com/LibreVR/Revive / shortcut

Method shortcut

ReviveOverlay/trayiconcontroller.cpp:115–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void CTrayIconController::shortcut()
116{
117 QString file = openDialog();
118 if (file.isNull())
119 return;
120
121 QString args = file;
122 if (CReviveManifestController::SharedInstance()->UsingOpenXR())
123 args.prepend("/openxr ");
124
125 if (!WindowsServices::CreateShortcut(QStandardPaths::writableLocation(QStandardPaths::DesktopLocation) + "/" + QFileInfo(file).baseName() + ".lnk",
126 QCoreApplication::applicationDirPath() + "/ReviveInjector.exe", args, file))
127 return;
128
129 m_trayIcon->showMessage("Shortcut created on desktop",
130 "You can use this shortcut to launch the executable with Revive directly.",
131 QSystemTrayIcon::Information);
132}
133
134void CTrayIconController::showHelp()
135{

Callers

nothing calls this directly

Calls 1

UsingOpenXRMethod · 0.80

Tested by

no test coverage detected