mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix logfiles crashing Windoze
(cherry picked from commit 3bb7fd4cbf2bb92f5548cafad00b80cb366395a4)
This commit is contained in:
parent
7ef8e81713
commit
f74adb0ad9
1 changed files with 6 additions and 3 deletions
|
|
@ -195,9 +195,12 @@ int main(int argc, char **argv)
|
||||||
format, timeinfo);
|
format, timeinfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
M_MkdirEachUntil(logfilename,
|
if (logdir)
|
||||||
M_PathParts(logdir) - 1,
|
{
|
||||||
M_PathParts(logfilename) - 1, 0755);
|
M_MkdirEachUntil(logfilename,
|
||||||
|
M_PathParts(logdir) - 1,
|
||||||
|
M_PathParts(logfilename) - 1, 0755);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
logstream = fopen(logfilename, "w");
|
logstream = fopen(logfilename, "w");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue