Changes for linux version

This commit is contained in:
Regalis
2016-11-03 20:11:56 +02:00
parent c3b3d57b57
commit 1e61e815b8
2 changed files with 9 additions and 5 deletions

View File

@@ -63,6 +63,8 @@ namespace Barotrauma
private static bool CheckException(GameMain game, Exception e)
{
#if WINDOWS
if (e is SharpDX.SharpDXException)
{
switch ((uint)((SharpDX.SharpDXException)e).ResultCode.Code)
@@ -104,6 +106,8 @@ namespace Barotrauma
return false;
}
}
#endif
return false;
}