mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 15:55:30 +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);
|
||||
char AddrBuf[64];
|
||||
// TODO: IPv6 would need this to be changed
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user