mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 16:06:44 +00:00
Keep old client logs
This commit is contained in:
parent
f08ab0b161
commit
e44ebca0aa
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue