fix typo in --help

This commit is contained in:
Lion Kortlepel 2021-12-05 01:40:39 +01:00
parent 479bb9f931
commit b33d50361c
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 4 additions and 3 deletions

View File

@ -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); auto Client = CreateClient(ClientConnection.Socket);
char AddrBuf[64]; char AddrBuf[64];
// TODO: IPv6 would need this to be changed // TODO: IPv6 would need this to be changed

View File

@ -33,7 +33,7 @@ ARGUMENTS:
--working-directory=/path/to/folder --working-directory=/path/to/folder
Sets the working directory of the Server. Sets the working directory of the Server.
All paths are considered relative to this, All paths are considered relative to this,
including the path given in --path. including the path given in --config.
--version --version
Prints version info and exits. Prints version info and exits.
@ -111,7 +111,7 @@ int BeamMPServerMain(MainArguments Arguments) {
if (Parser.FoundArgument({ "working-directory" })) { if (Parser.FoundArgument({ "working-directory" })) {
auto MaybeWorkingDirectory = Parser.GetValueOfArgument({ "working-directory" }); auto MaybeWorkingDirectory = Parser.GetValueOfArgument({ "working-directory" });
if (MaybeWorkingDirectory.has_value()) { 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 { try {
fs::current_path(fs::path(MaybeWorkingDirectory.value())); fs::current_path(fs::path(MaybeWorkingDirectory.value()));
} catch (const std::exception& e) { } catch (const std::exception& e) {
@ -156,6 +156,7 @@ int BeamMPServerMain(MainArguments Arguments) {
Application::CheckForUpdates(); Application::CheckForUpdates();
RegisterThread("Main(Waiting)"); RegisterThread("Main(Waiting)");
while (!Shutdown) { while (!Shutdown) {
std::this_thread::sleep_for(std::chrono::milliseconds(50)); std::this_thread::sleep_for(std::chrono::milliseconds(50));
} }