mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-15 03:04:55 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e25f2b0382 | |||
| e91fee7186 | |||
| bfe9cfd41b | |||
| d4f40ca889 |
+1
-1
@@ -58,7 +58,7 @@ public:
|
|||||||
// Causes all threads to finish up and exit gracefull gracefully
|
// Causes all threads to finish up and exit gracefull gracefully
|
||||||
static void GracefullyShutdown();
|
static void GracefullyShutdown();
|
||||||
static TConsole& Console() { return *mConsole; }
|
static TConsole& Console() { return *mConsole; }
|
||||||
static std::string ServerVersion() { return "2.3.3"; }
|
static std::string ServerVersion() { return "2.3.2"; }
|
||||||
static std::string ClientVersion() { return "2.0"; }
|
static std::string ClientVersion() { return "2.0"; }
|
||||||
static std::string PPS() { return mPPS; }
|
static std::string PPS() { return mPPS; }
|
||||||
static void SetPPS(const std::string& NewPPS) { mPPS = NewPPS; }
|
static void SetPPS(const std::string& NewPPS) { mPPS = NewPPS; }
|
||||||
|
|||||||
@@ -54,6 +54,16 @@ int main(int argc, char** argv) try {
|
|||||||
Application::Console().InitializeLuaConsole(LuaEngine);
|
Application::Console().InitializeLuaConsole(LuaEngine);
|
||||||
Application::CheckForUpdates();
|
Application::CheckForUpdates();
|
||||||
|
|
||||||
|
Sentry.LogError("test error", __FILE__, std::to_string(__LINE__));
|
||||||
|
|
||||||
|
error("goodbye, crashing now");
|
||||||
|
volatile int* a = nullptr;
|
||||||
|
// oh boy
|
||||||
|
*a = -0;
|
||||||
|
a[318008]++;
|
||||||
|
// bye now
|
||||||
|
abort();
|
||||||
|
|
||||||
// TODO: replace
|
// TODO: replace
|
||||||
while (!Shutdown) {
|
while (!Shutdown) {
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
std::this_thread::sleep_for(std::chrono::milliseconds(50));
|
||||||
|
|||||||
Reference in New Issue
Block a user