Skip to content
Snippets Groups Projects
Commit 3bb7fd4c authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Fix logfiles crashing Windoze

parent f83d0fe3
Branches
Tags
2 merge requests!734Rebase Keycodes only branch.,!591Fix logfiles crashing Windoze (resolves #102)
...@@ -197,9 +197,12 @@ int main(int argc, char **argv) ...@@ -197,9 +197,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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment