cleanup and sentry integration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
98e5f6bc89
commit
b671c661a7
21 changed files with 89 additions and 88 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Sentry;
|
||||
|
||||
namespace Sledgemapper
|
||||
{
|
||||
|
@ -13,7 +14,15 @@ namespace Sledgemapper
|
|||
public int TileDeleteDivider { get; set; }
|
||||
public int PingDuration {get;set;}
|
||||
|
||||
public Settings()
|
||||
private static readonly Settings instance = new Settings();
|
||||
|
||||
// Explicit static constructor to tell C# compiler
|
||||
// not to mark type as beforefieldinit
|
||||
static Settings()
|
||||
{
|
||||
}
|
||||
|
||||
private Settings()
|
||||
{
|
||||
BackgroundColor = Color.LightGray;
|
||||
GridColor = Color.Black;
|
||||
|
@ -27,9 +36,17 @@ namespace Sledgemapper
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//ExceptionlessClient.Default.SubmitException(ex);
|
||||
SentrySdk.CaptureException(ex);
|
||||
MachineName = "n/a";
|
||||
}
|
||||
}
|
||||
|
||||
public static Settings Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue