Moved the trace.log to the local config directory.

This commit is contained in:
skidau 2015-05-21 13:31:34 +00:00
parent 3f9d927103
commit 759cf30a19
1 changed files with 2 additions and 1 deletions

View File

@ -1416,7 +1416,8 @@ void log(const char* defaultMsg, ...)
if (out == NULL)
{
// FIXME: this should be an option
out = fopen("trace.log", "w");
wxFileName trace_log(wxStandardPaths::Get().GetUserLocalDataDir(), wxT("trace.log"));
out = fopen(trace_log.GetFullPath().mb_str(), "w");
if (!out)
return;