1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Refactor enet-related code

This commit is contained in:
nordsoft
2023-01-18 02:02:17 +04:00
parent 39ad8c7da1
commit ccef596cc0
11 changed files with 470 additions and 294 deletions

View File

@ -11,7 +11,6 @@
//
#include "StdInc.h"
#include <enet/enet.h>
#include <boost/program_options.hpp>
#include <vcmi/scripting/Service.h>
@ -251,11 +250,6 @@ int main(int argc, char * argv[])
*console->cb = processCommand;
console->start();
#endif
if(enet_initialize() != 0)
{
return EXIT_FAILURE;
}
const bfs::path logPath = VCMIDirs::get().userLogsPath() / "VCMI_Client_log.txt";
logConfig = new CBasicLogConfigurator(logPath, console);