mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
Sentry: ensure user is set up before version check
This commit is contained in:
parent
07cf7d7c21
commit
0d5ef404f6
@ -1,7 +1,12 @@
|
|||||||
# v2.3.0
|
# v2.3.0
|
||||||
|
|
||||||
|
- ADDED version check - the server will now let you know when a new release is out
|
||||||
- ADDED logging of various errors, crashes and exceptions to the backend
|
- ADDED logging of various errors, crashes and exceptions to the backend
|
||||||
- ADDED `[CHAT]` messages to server console
|
- ADDED chat messages are now logged to the server console as [CHAT]
|
||||||
|
- ADDED debug message telling you when the server heartbeats to the backend
|
||||||
|
- REMOVED various [DEBUG] messages which were confusing (such as "breaking client loop")
|
||||||
|
- FIXED various crashes and issues with handling unexpected backend responses
|
||||||
|
- FIXED minor bugs due to code correctness
|
||||||
|
|
||||||
# v2.2.0
|
# v2.2.0
|
||||||
|
|
||||||
|
11
src/main.cpp
11
src/main.cpp
@ -62,17 +62,7 @@ int main(int argc, char** argv) try {
|
|||||||
bool Shutdown = false;
|
bool Shutdown = false;
|
||||||
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
|
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
|
||||||
|
|
||||||
Assert(!Application::IsOutdated(std::array<int, 3> { 1, 0, 0 }, std::array<int, 3> { 1, 0, 0 }));
|
|
||||||
Assert(!Application::IsOutdated(std::array<int, 3> { 1, 0, 1 }, std::array<int, 3> { 1, 0, 0 }));
|
|
||||||
Assert(Application::IsOutdated(std::array<int, 3> { 1, 0, 0 }, std::array<int, 3> { 1, 0, 1 }));
|
|
||||||
Assert(Application::IsOutdated(std::array<int, 3> { 1, 0, 0 }, std::array<int, 3> { 1, 1, 0 }));
|
|
||||||
Assert(Application::IsOutdated(std::array<int, 3> { 1, 0, 0 }, std::array<int, 3> { 2, 0, 0 }));
|
|
||||||
Assert(!Application::IsOutdated(std::array<int, 3> { 2, 0, 0 }, std::array<int, 3> { 1, 0, 1 }));
|
|
||||||
|
|
||||||
TServer Server(argc, argv);
|
TServer Server(argc, argv);
|
||||||
|
|
||||||
Application::CheckForUpdates();
|
|
||||||
|
|
||||||
TConfig Config;
|
TConfig Config;
|
||||||
|
|
||||||
if (Config.Failed()) {
|
if (Config.Failed()) {
|
||||||
@ -87,6 +77,7 @@ int main(int argc, char** argv) try {
|
|||||||
|
|
||||||
Sentry.SetupUser();
|
Sentry.SetupUser();
|
||||||
Sentry.PrintWelcome();
|
Sentry.PrintWelcome();
|
||||||
|
Application::CheckForUpdates();
|
||||||
TResourceManager ResourceManager;
|
TResourceManager ResourceManager;
|
||||||
TPPSMonitor PPSMonitor(Server);
|
TPPSMonitor PPSMonitor(Server);
|
||||||
THeartbeatThread Heartbeat(ResourceManager, Server);
|
THeartbeatThread Heartbeat(ResourceManager, Server);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user