MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Init

Method Init

engine/Poseidon/Network/NetworkServer.cpp:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 }
427 LOG_INFO(Network, "Server initialized successfully on port {}", server->GetSessionPort());
428
429 if (voiceOverNet)
430 {
431 server->InitVoice();
432 }
433
434 char buffer[256];
435 snprintf(buffer, sizeof(buffer), "%sTmp%d", GamePaths::Instance().TempDir().c_str(), server->GetSessionPort());
436 ServerTmpDir = buffer;
437
438 return server;
439}
440
441bool NetworkServer::Init(int port, RString password)
442{
443 // load some settings from Flashpoint.cfg
444 ParamFile cfg;
445 cfg.Parse(FlashpointCfg);

Callers 1

NetworkServer.cppFile · 0.45

Calls 2

ParseMethod · 0.45
FindEntryMethod · 0.45

Tested by

no test coverage detected