1
0
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:
Michał W. Urbańczyk 2011-11-10 13:03:45 +00:00
parent 5be8c31d97
commit 8b6f0f699d
2 changed files with 4 additions and 2 deletions

View File

@ -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
{

View File

@ -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));