|
|
@ -335,6 +335,7 @@ int main(int argc, char**argv)
|
|
|
|
std::cerr.rdbuf (&sb);
|
|
|
|
std::cerr.rdbuf (&sb);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
// Redirect cout and cerr to openmw.log
|
|
|
|
// Redirect cout and cerr to openmw.log
|
|
|
|
|
|
|
|
Log::copyOldLog(cfgMgr.getLogPath(), "openmw", "log");
|
|
|
|
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
|
|
|
|
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / "/openmw.log"));
|
|
|
|
|
|
|
|
|
|
|
|
coutsb.open (Tee(logfile, oldcout));
|
|
|
|
coutsb.open (Tee(logfile, oldcout));
|
|
|
|