mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +00:00
fix typo in --help
This commit is contained in:
parent
479bb9f931
commit
b33d50361c
@ -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
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user