mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	[programming challenge] More.
This commit is contained in:
		| @@ -39,7 +39,8 @@ int main(int argc, char** argv) | ||||
|  | ||||
| 	initDLL(console,logfile); | ||||
|  | ||||
| 	logfile = new std::ofstream((logDir + "/" + "VCMI_Runner_log_" + boost::lexical_cast<std::string>(pid) + ".txt").c_str()); | ||||
| 	std::string logName = logDir + "/" + "VCMI_Runner_log_" + boost::lexical_cast<std::string>(pid) + ".txt"; | ||||
| 	logfile = new std::ofstream(logName.c_str()); | ||||
|  | ||||
| 	try | ||||
| 	{ | ||||
|   | ||||
| @@ -680,7 +680,8 @@ int main(int argc, char** argv) | ||||
| 	if(argc >= 6) | ||||
| 		LOGS_DIR = argv[5]; | ||||
|  | ||||
| 	logfile = new std::ofstream(LOGS_DIR + "/" + "VCMI_Server_log.txt"); | ||||
| 	std::string logName = LOGS_DIR + "/" + "VCMI_Server_log.txt"; | ||||
| 	logfile = new std::ofstream(logName.c_str()); | ||||
| 	console = new CConsoleHandler; | ||||
| 	//boost::thread t(boost::bind(&CConsoleHandler::run,::console)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user