MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / InstallViGem

Method InstallViGem

src/render_panel/gr_system_monitor.cpp:185–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 }
184
185 void GrSystemMonitor::InstallViGem(bool silent) {
186 auto exe_folder_path = GrContext::GetCurrentExeFolder();
187 std::string cmd;
188 if (silent) {
189 cmd = std::format("{}/joystick.exe /passive /promptrestart", exe_folder_path);
190 } else {
191 cmd = std::format("{}/joystick.exe", exe_folder_path);
192 }
193
194 if (!ProcessUtil::StartProcessInWorkDir(exe_folder_path, cmd, {})) {
195 LOGE("Install ViGEm device failed.");
196 }
197 }
198
199 void GrSystemMonitor::NotifyViGEnState(bool ok) {
200 static bool first_emit_state = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected