Config: Add basic opt-out for Sentry

This commit is contained in:
Lion Kortlepel
2021-09-09 17:22:03 +03:00
committed by Lion
parent 3cd94380e2
commit ffac000cd2
4 changed files with 29 additions and 4 deletions

View File

@@ -30,7 +30,8 @@ public:
, Private(false)
, MaxCars(1)
, DebugModeEnabled(false)
, Port(30814) { }
, Port(30814)
, SendErrors(true) { }
std::string ServerName;
std::string ServerDesc;
std::string Resource;
@@ -42,6 +43,7 @@ public:
bool DebugModeEnabled;
int Port;
std::string CustomIP;
bool SendErrors;
[[nodiscard]] bool HasCustomIP() const { return !CustomIP.empty(); }
};
using TShutdownHandler = std::function<void()>;