1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fix build, reduce includes of CConsoleHandler

This commit is contained in:
Ivan Savenko
2025-02-28 11:37:56 +00:00
parent dd1b877449
commit 06be6b909c
12 changed files with 63 additions and 63 deletions

View File

@@ -72,14 +72,14 @@ int main(int argc, const char * argv[])
boost::filesystem::current_path(boost::filesystem::system_complete(argv[0]).parent_path());
CConsoleHandler console;
CBasicLogConfigurator logConfig(VCMIDirs::get().userLogsPath() / "VCMI_Server_log.txt", &console);
logConfig.configureDefault();
CBasicLogConfigurator logConfigurator(VCMIDirs::get().userLogsPath() / "VCMI_Server_log.txt", &console);
logConfigurator.configureDefault();
logGlobal->info(SERVER_NAME);
boost::program_options::variables_map opts;
handleCommandOptions(argc, argv, opts);
preinitDLL(false);
logConfig.configure();
logConfigurator.configure();
loadDLLClasses();
std::srand(static_cast<uint32_t>(time(nullptr)));
@@ -98,7 +98,7 @@ int main(int argc, const char * argv[])
// CVCMIServer destructor must be called here - before LIBRARY cleanup
}
logConfig.deconfigure();
logConfigurator.deconfigure();
vstd::clear_pointer(LIBRARY);
return 0;