mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-18 23:20:53 +00:00
Move update check to after initialization (since its blocking)
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ void Application::CheckForUpdates() {
|
|||||||
std::string RealVersionString = std::to_string(RemoteVersion[0]) + ".";
|
std::string RealVersionString = std::to_string(RemoteVersion[0]) + ".";
|
||||||
RealVersionString += std::to_string(RemoteVersion[1]) + ".";
|
RealVersionString += std::to_string(RemoteVersion[1]) + ".";
|
||||||
RealVersionString += std::to_string(RemoteVersion[2]);
|
RealVersionString += std::to_string(RemoteVersion[2]);
|
||||||
warn(std::string(ANSI_YELLOW_BOLD) + "NEW VERSION OUT! There's a new version (v" + RealVersionString + ") of the BeamMP-Server available! For info on how to update your server, visit https://wiki.beammp.com/en/home/server-maintenance#updating-the-server." + std::string(ANSI_RESET));
|
warn(std::string(ANSI_YELLOW_BOLD) + "NEW VERSION OUT! There's a new version (v" + RealVersionString + ") of the BeamMP-Server available! For more info visit https://wiki.beammp.com/en/home/server-maintenance#updating-the-server." + std::string(ANSI_RESET));
|
||||||
} else {
|
} else {
|
||||||
info("Server up-to-date!");
|
info("Server up-to-date!");
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -45,7 +45,6 @@ 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);
|
||||||
@@ -53,6 +52,7 @@ int main(int argc, char** argv) try {
|
|||||||
TLuaEngine LuaEngine(Server, Network);
|
TLuaEngine LuaEngine(Server, Network);
|
||||||
PPSMonitor.SetNetwork(Network);
|
PPSMonitor.SetNetwork(Network);
|
||||||
Application::Console().InitializeLuaConsole(LuaEngine);
|
Application::Console().InitializeLuaConsole(LuaEngine);
|
||||||
|
Application::CheckForUpdates();
|
||||||
|
|
||||||
// TODO: replace
|
// TODO: replace
|
||||||
while (!Shutdown) {
|
while (!Shutdown) {
|
||||||
|
|||||||
Reference in New Issue
Block a user