Added extra log message when ViGEmBus is not detected

This commit is contained in:
Travis Nickles 2019-11-27 14:10:44 -06:00
parent 9a5d4c1f63
commit 8a6aae2b42

View File

@ -550,7 +550,16 @@ namespace DS4Windows
} }
else else
{ {
string logMessage = "Could not connect to ViGEmBus. Please check the status of the System device in Device Manager and if Visual C++ 2017 Redistributable is installed."; string logMessage = string.Empty;
if (!vigemInstalled)
{
logMessage = "ViGEmBus is not installed";
}
else
{
logMessage = "Could not connect to ViGEmBus. Please check the status of the System device in Device Manager and if Visual C++ 2017 Redistributable is installed.";
}
LogDebug(logMessage); LogDebug(logMessage);
AppLogger.LogToTray(logMessage); AppLogger.LogToTray(logMessage);
} }