Faction Test v1.0.1.0
This commit is contained in:
@@ -648,6 +648,12 @@ namespace Barotrauma.Sounds
|
||||
|
||||
if (isConnected == 0)
|
||||
{
|
||||
if (!GameMain.Instance.HasLoaded)
|
||||
{
|
||||
//wait for loading to finish so we don't start releasing and reloading sounds when they're being loaded,
|
||||
//or throw an error mid-loading that'd prevent the content package from being enabled
|
||||
return;
|
||||
}
|
||||
DebugConsole.ThrowError("Playback device has been disconnected. You can select another available device in the settings.");
|
||||
SetAudioOutputDevice("<disconnected>");
|
||||
Disconnected = true;
|
||||
|
||||
Reference in New Issue
Block a user