Skip to content

Commit

Permalink
Fix log.
Browse files Browse the repository at this point in the history
  • Loading branch information
intorr committed Mar 24, 2018
1 parent 131f62d commit e52b701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xrCore/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Lock logCS(MUTEX_PROFILE_ID(log));
#else // CONFIG_PROFILE_LOCKS
Lock logCS;
#endif // CONFIG_PROFILE_LOCKS
xr_vector<xr_string> LogFile(1000);
xr_vector<xr_string> LogFile;
LogCallback LogCB = 0;

void FlushLog()
Expand Down Expand Up @@ -186,6 +186,8 @@ LPCSTR log_name() { return (log_file_name); }

void CreateLog(BOOL nl)
{
LogFile.reserve(1000);

no_log = nl;
strconcat(sizeof(log_file_name), log_file_name, Core.ApplicationName, "_", Core.UserName, ".log");
if (FS.path_exist("$logs$"))
Expand Down

0 comments on commit e52b701

Please sign in to comment.