diff --git a/server/src/traintastic/traintastic.cpp b/server/src/traintastic/traintastic.cpp index 28dc1432..92f6621e 100644 --- a/server/src/traintastic/traintastic.cpp +++ b/server/src/traintastic/traintastic.cpp @@ -99,6 +99,7 @@ Traintastic::Traintastic(const std::filesystem::path& dataDir) : assert(weakWorld.expired()); #endif settings->lastWorld = ""; + Log::log(*this, LogMessage::N1028_CLOSED_WORLD); }}, restart{*this, "restart", [this]() @@ -253,6 +254,7 @@ void Traintastic::loadWorldPath(const std::filesystem::path& path) assert(weakWorld.expired()); #endif settings->lastWorld = world->uuid.value(); + Log::log(*this, LogMessage::N1027_LOADED_WORLD_X, world->name.value()); } catch(const LogMessageException& e) { diff --git a/shared/src/traintastic/enum/logmessage.hpp b/shared/src/traintastic/enum/logmessage.hpp index a822f819..dc3fb3d2 100644 --- a/shared/src/traintastic/enum/logmessage.hpp +++ b/shared/src/traintastic/enum/logmessage.hpp @@ -114,6 +114,8 @@ enum class LogMessage : uint32_t N1024_SIMULATION_ENABLED = LogMessageOffset::notice + 1024, N1025_EXPORTED_WORLD_SUCCESSFULLY = LogMessageOffset::notice + 1025, N1026_IMPORTED_WORLD_SUCCESSFULLY = LogMessageOffset::notice + 1026, + N1027_LOADED_WORLD_X = LogMessageOffset::notice + 1027, + N1028_CLOSED_WORLD = LogMessageOffset::notice + 1028, N2001_SIMULATION_NOT_SUPPORTED = LogMessageOffset::notice + 2001, N2002_NO_RESPONSE_FROM_LNCV_MODULE_X_WITH_ADDRESS_X = LogMessageOffset::notice + 2002, N2003_STOPPED_SENDING_FAST_CLOCK_SYNC = LogMessageOffset::notice + 2003, diff --git a/shared/translations/en-us.txt b/shared/translations/en-us.txt index 9a5d297b..0bf835d3 100644 --- a/shared/translations/en-us.txt +++ b/shared/translations/en-us.txt @@ -421,6 +421,8 @@ message:N1023=Simulation: disabled message:N1024=Simulation: enabled message:N1025=Exported world successfully message:N1026=Imported world successfully +message:N1027=Loaded world: %1 +message:N1028=Closed world message:N2001=Simulation not supported message:N2002=No response from LNCV module %1 with address %2 message:N2003=Stopped sending fast clock sync