| 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; |
nothing calls this directly
no outgoing calls
no test coverage detected