|
@@ -11,6 +11,7 @@ using System.Diagnostics;
|
|
|
using System.IO;
|
|
using System.IO;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
|
|
|
+using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using GUI = Gtk.Builder.ObjectAttribute;
|
|
using GUI = Gtk.Builder.ObjectAttribute;
|
|
|
|
|
|
|
@@ -198,15 +199,32 @@ namespace Ryujinx.Ui
|
|
|
_systemTimeZoneSelect.Append(locationName, locationName);
|
|
_systemTimeZoneSelect.Append(locationName, locationName);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- _audioBackendSelect.Append(AudioBackend.Dummy.ToString(), AudioBackend.Dummy.ToString());
|
|
|
|
|
- if (SoundIoAudioOut.IsSupported)
|
|
|
|
|
- _audioBackendSelect.Append(AudioBackend.SoundIo.ToString(), "SoundIO");
|
|
|
|
|
- if (OpenALAudioOut.IsSupported)
|
|
|
|
|
- _audioBackendSelect.Append(AudioBackend.OpenAl.ToString(), "OpenAL");
|
|
|
|
|
|
|
+ Task.Run(() =>
|
|
|
|
|
+ {
|
|
|
|
|
+ if (SoundIoAudioOut.IsSupported)
|
|
|
|
|
+ {
|
|
|
|
|
+ Application.Invoke(delegate
|
|
|
|
|
+ {
|
|
|
|
|
+ _audioBackendSelect.Append(AudioBackend.SoundIo.ToString(), "SoundIO");
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (OpenALAudioOut.IsSupported)
|
|
|
|
|
+ {
|
|
|
|
|
+ Application.Invoke(delegate
|
|
|
|
|
+ {
|
|
|
|
|
+ _audioBackendSelect.Append(AudioBackend.OpenAl.ToString(), "OpenAL");
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ Application.Invoke(delegate
|
|
|
|
|
+ {
|
|
|
|
|
+ _audioBackendSelect.SetActiveId(ConfigurationState.Instance.System.AudioBackend.Value.ToString());
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
_systemLanguageSelect.SetActiveId(ConfigurationState.Instance.System.Language.Value.ToString());
|
|
_systemLanguageSelect.SetActiveId(ConfigurationState.Instance.System.Language.Value.ToString());
|
|
|
_systemRegionSelect.SetActiveId(ConfigurationState.Instance.System.Region.Value.ToString());
|
|
_systemRegionSelect.SetActiveId(ConfigurationState.Instance.System.Region.Value.ToString());
|
|
|
- _audioBackendSelect.SetActiveId(ConfigurationState.Instance.System.AudioBackend.Value.ToString());
|
|
|
|
|
_systemTimeZoneSelect.SetActiveId(timeZoneContentManager.SanityCheckDeviceLocationName());
|
|
_systemTimeZoneSelect.SetActiveId(timeZoneContentManager.SanityCheckDeviceLocationName());
|
|
|
_resScaleCombo.SetActiveId(ConfigurationState.Instance.Graphics.ResScale.Value.ToString());
|
|
_resScaleCombo.SetActiveId(ConfigurationState.Instance.Graphics.ResScale.Value.ToString());
|
|
|
_anisotropy.SetActiveId(ConfigurationState.Instance.Graphics.MaxAnisotropy.Value.ToString());
|
|
_anisotropy.SetActiveId(ConfigurationState.Instance.Graphics.MaxAnisotropy.Value.ToString());
|