working sentry-native

This commit is contained in:
Lion Kortlepel
2021-08-08 00:28:30 +02:00
committed by Lion
parent d5769ce9be
commit da41862f49
4 changed files with 51 additions and 3 deletions

16
src/Sentry.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "Sentry.h"
#include "Common.h"
#include "sentry.h"
Sentry::Sentry(const std::string& SentryUrl) {
sentry_options_t* options = sentry_options_new();
sentry_options_set_dsn(options, SentryUrl.c_str());
auto ReleaseString = "BeamMP-Server@" + Application::ServerVersion();
sentry_options_set_release(options, ReleaseString.c_str());
sentry_init(options);
}
Sentry::~Sentry() {
sentry_close();
}