(456804016) Handle exceptions thrown by GameAnalytics.SetEnabledInfoLog in debug builds
This commit is contained in:
@@ -16,9 +16,18 @@ namespace Barotrauma
|
|||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
GameAnalytics.SetEnabledInfoLog(true);
|
try
|
||||||
|
{
|
||||||
|
GameAnalytics.SetEnabledInfoLog(true);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
DebugConsole.ThrowError("Initializing GameAnalytics failed. Disabling user statistics...", e);
|
||||||
|
GameSettings.SendUserStatistics = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
string exePath = Assembly.GetEntryAssembly().Location;
|
string exePath = Assembly.GetEntryAssembly().Location;
|
||||||
string exeName = null;
|
string exeName = null;
|
||||||
Md5Hash exeHash = null;
|
Md5Hash exeHash = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user