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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user