From b33d50361c38af430b9bf76d51d8689a535f4d4a Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 5 Dec 2021 01:40:39 +0100 Subject: [PATCH] fix typo in --help --- src/TNetwork.cpp | 2 +- src/main.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TNetwork.cpp b/src/TNetwork.cpp index 49cfca8..c3e9169 100644 --- a/src/TNetwork.cpp +++ b/src/TNetwork.cpp @@ -203,7 +203,7 @@ void TNetwork::HandleDownload(SOCKET TCPSock) { }); } -void TNetwork:: Authentication(const TConnection& ClientConnection) { +void TNetwork::Authentication(const TConnection& ClientConnection) { auto Client = CreateClient(ClientConnection.Socket); char AddrBuf[64]; // TODO: IPv6 would need this to be changed diff --git a/src/main.cpp b/src/main.cpp index 8dc25b9..be58b64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -33,7 +33,7 @@ ARGUMENTS: --working-directory=/path/to/folder Sets the working directory of the Server. All paths are considered relative to this, - including the path given in --path. + including the path given in --config. --version Prints version info and exits. @@ -111,7 +111,7 @@ int BeamMPServerMain(MainArguments Arguments) { if (Parser.FoundArgument({ "working-directory" })) { auto MaybeWorkingDirectory = Parser.GetValueOfArgument({ "working-directory" }); if (MaybeWorkingDirectory.has_value()) { - beammp_info("Custom working directory requested via commandline arguments: '" + ConfigPath + "'"); + beammp_info("Custom working directory requested via commandline arguments: '" + MaybeWorkingDirectory.value() + "'"); try { fs::current_path(fs::path(MaybeWorkingDirectory.value())); } catch (const std::exception& e) { @@ -156,6 +156,7 @@ int BeamMPServerMain(MainArguments Arguments) { Application::CheckForUpdates(); RegisterThread("Main(Waiting)"); + while (!Shutdown) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); }