(2d9e06198) Attempt to fix incorrectly displayed Chinese capture device names (haven't been able to reproduce)
This commit is contained in:
@@ -481,12 +481,12 @@ namespace Barotrauma
|
||||
var deviceList = new GUIDropDown(new RectTransform(new Vector2(1.0f, 0.05f), audioSliders.RectTransform), VoiceCaptureDevice, deviceNames.Count);
|
||||
foreach (string name in deviceNames)
|
||||
{
|
||||
deviceList.AddItem(name, name);
|
||||
deviceList.AddItem(TextManager.EnsureUTF8(name), name);
|
||||
}
|
||||
deviceList.OnSelected = (GUIComponent selected, object obj) =>
|
||||
{
|
||||
string name = obj as string;
|
||||
if (VoiceCaptureDevice == name) return true;
|
||||
if (VoiceCaptureDevice == name) { return true; }
|
||||
|
||||
VoipCapture.ChangeCaptureDevice(name);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user