diff --git a/ALVR/Launcher.cs b/ALVR/Launcher.cs index b611234a..c23e49b5 100644 --- a/ALVR/Launcher.cs +++ b/ALVR/Launcher.cs @@ -46,10 +46,18 @@ private void Launcher_Load(object sender, EventArgs e) // Get sound devices // - var list = SoundDevice.GetSoundDeviceList(); - foreach (var device in list) + try { - soundDeviceComboBox.Items.Add(device); + var list = SoundDevice.GetSoundDeviceList(); + foreach (var device in list) + { + soundDeviceComboBox.Items.Add(device); + } + } + catch (Exception e2) + { + Application.Exit(); + return; } // diff --git a/ALVR/SoundDevice.cs b/ALVR/SoundDevice.cs index 589239c9..9752407a 100644 --- a/ALVR/SoundDevice.cs +++ b/ALVR/SoundDevice.cs @@ -35,7 +35,7 @@ static public List GetSoundDeviceList() if (pDll == IntPtr.Zero) { int err = Marshal.GetLastWin32Error(); - MessageBox.Show("Cannot load library. ALVR works only on 64bits Windows.\r\n" + Utils.GetDllPath(Utils.GetDriverPath()) + "\r\nCode:" + err); + MessageBox.Show("Cannot load library. ALVR works only on 64bits Windows with NVIDIA GPU.\r\n" + Utils.GetDllPath(Utils.GetDriverPath()) + "\r\nCode:" + err); throw new Exception(); }