mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
[programming challenge] More.
This commit is contained in:
parent
5be8c31d97
commit
8b6f0f699d
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user