mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-07 07:10:04 +02:00
Merge pull request #38 from josch/vcmiserver-handle-options-first
let vcmiserver handle commandline options first
This commit is contained in:
commit
0e2cc54252
@ -599,14 +599,14 @@ int main(int argc, char** argv)
|
|||||||
CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() + "/VCMI_Server_log.txt", console);
|
CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() + "/VCMI_Server_log.txt", console);
|
||||||
logConfig.configureDefault();
|
logConfig.configureDefault();
|
||||||
|
|
||||||
preinitDLL(console);
|
|
||||||
settings.init();
|
|
||||||
logConfig.configure();
|
|
||||||
|
|
||||||
handleCommandOptions(argc, argv);
|
handleCommandOptions(argc, argv);
|
||||||
port = cmdLineOptions["port"].as<int>();
|
port = cmdLineOptions["port"].as<int>();
|
||||||
logNetwork->infoStream() << "Port " << port << " will be used.";
|
logNetwork->infoStream() << "Port " << port << " will be used.";
|
||||||
|
|
||||||
|
preinitDLL(console);
|
||||||
|
settings.init();
|
||||||
|
logConfig.configure();
|
||||||
|
|
||||||
loadDLLClasses();
|
loadDLLClasses();
|
||||||
srand ( (ui32)time(nullptr) );
|
srand ( (ui32)time(nullptr) );
|
||||||
try
|
try
|
||||||
|
Loading…
x
Reference in New Issue
Block a user