cleanup and sentry integration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 10:30:44 +01:00
parent 98e5f6bc89
commit b671c661a7
21 changed files with 89 additions and 88 deletions

View file

@ -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;
}
}
}
}