Browse Source

Merge pull request #38 from josch/vcmiserver-handle-options-first

let vcmiserver handle commandline options first
Ivan Savenko 11 năm trước cách đây
mục cha
commit
0e2cc54252
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      server/CVCMIServer.cpp

+ 4 - 4
server/CVCMIServer.cpp

@@ -599,14 +599,14 @@ int main(int argc, char** argv)
 	CBasicLogConfigurator logConfig(VCMIDirs::get().userCachePath() + "/VCMI_Server_log.txt", console);
 	logConfig.configureDefault();
 
-	preinitDLL(console);
-    settings.init();
-	logConfig.configure();
-
 	handleCommandOptions(argc, argv);
 	port = cmdLineOptions["port"].as<int>();
 	logNetwork->infoStream() << "Port " << port << " will be used.";
 
+	preinitDLL(console);
+	settings.init();
+	logConfig.configure();
+
 	loadDLLClasses();
 	srand ( (ui32)time(nullptr) );
 	try