| 129 | } |
| 130 | |
| 131 | bool GrSystemMonitor::CheckViGEmDriver() { |
| 132 | DWORD major = 0, minor = 0; |
| 133 | std::wstring path = L"C:\\Windows\\System32\\drivers\\ViGEmBus.sys"; |
| 134 | |
| 135 | if (GetFileVersion(path, major, minor)) { |
| 136 | //LOGI("ViGEmBus: {}.{}", major, minor); |
| 137 | if (major > 1 || (major == 1 && minor >= 17)) { |
| 138 | return true; |
| 139 | } else { |
| 140 | return false; |
| 141 | } |
| 142 | } else { |
| 143 | return false; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | bool GrSystemMonitor::GetFileVersion(const std::wstring& filePath, DWORD& major, DWORD& minor){ |
| 148 | DWORD dummy; |
nothing calls this directly
no outgoing calls
no test coverage detected