Skip to content

Commit

Permalink
Lessen ViGEmBus restriction for now. Allow connecting to ViGEmBus 1.1…
Browse files Browse the repository at this point in the history
…6.112.0

PLEASE DON'T MAKE ME REGRET THIS
  • Loading branch information
Ryochan7 committed Apr 15, 2021
1 parent 25a3fb9 commit ae6574b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DS4Windows/DS4Control/ControlService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ public bool Start(bool showlog = true)
}
else if (!Global.IsRunningSupportedViGEmBus())
{
logMessage = "Unsupported ViGEmBus found. Please install at least ViGEmBus 1.17.333.0";
logMessage = string.Format("Unsupported ViGEmBus found ({0}). Please install at least ViGEmBus 1.17.333.0", Global.vigembusVersion);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion DS4Windows/DS4Control/ScpUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static bool IsWin10OrGreater()
public static Version vigemBusVersionInfo =
new Version(!string.IsNullOrEmpty(vigembusVersion) ? vigembusVersion :
BLANK_VIGEMBUS_VERSION);
public static Version minSupportedViGEmBusVersionInfo = new Version("1.17.333.0");
public static Version minSupportedViGEmBusVersionInfo = new Version("1.16.112.0");
public const int CONFIG_VERSION = 5;
public const int APP_CONFIG_VERSION = 2;
public const string ASSEMBLY_RESOURCE_PREFIX = "pack://application:,,,/DS4Windows;";
Expand Down
12 changes: 10 additions & 2 deletions DS4Windows/DS4Forms/WelcomeDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ public WelcomeDialog(bool loadConfig = false)

InitializeComponent();

if (!Environment.Is64BitOperatingSystem)
if (!DS4Windows.Global.IsWin10OrGreater())
{
installDL = InstallerDL1_16;
installFileName = InstFileName1_16;
}
else if (!Environment.Is64BitOperatingSystem)
{
installDL = InstallerDLX86;
installFileName = InstFileNameX86;
Expand All @@ -53,7 +58,10 @@ public WelcomeDialog(bool loadConfig = false)

// Disable Xbox 360 driver installer button if running on Windows 8 or greater.
// Driver comes pre-installed on a standard OS install
step2Btn.IsEnabled = false;
if (DS4Windows.Global.IsWin8OrGreater())
{
step2Btn.IsEnabled = false;
}
}

private void FinishedBtn_Click(object sender, RoutedEventArgs e)
Expand Down

0 comments on commit ae6574b

Please sign in to comment.