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

Method CheckViGEmDriver

src/render_panel/gr_system_monitor.cpp:131–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected