mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 18:01:16 +00:00
Fix logfiles crashing Windoze
This commit is contained in:
parent
f83d0fe3a1
commit
3bb7fd4cbf
1 changed files with 6 additions and 3 deletions
|
@ -197,9 +197,12 @@ int main(int argc, char **argv)
|
|||
format, timeinfo);
|
||||
}
|
||||
|
||||
M_MkdirEachUntil(logfilename,
|
||||
M_PathParts(logdir) - 1,
|
||||
M_PathParts(logfilename) - 1, 0755);
|
||||
if (logdir)
|
||||
{
|
||||
M_MkdirEachUntil(logfilename,
|
||||
M_PathParts(logdir) - 1,
|
||||
M_PathParts(logfilename) - 1, 0755);
|
||||
}
|
||||
|
||||
#ifdef __unix__
|
||||
logstream = fopen(logfilename, "w");
|
||||
|
|
Loading…
Reference in a new issue