mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Correct usage of logdir
(cherry picked from commit b7b4945c36fb95f406a365d64f109cfc83ad4d63)
This commit is contained in:
parent
d1de8cc2eb
commit
7ef8e81713
1 changed files with 4 additions and 3 deletions
|
|
@ -202,10 +202,11 @@ int main(int argc, char **argv)
|
|||
#ifdef __unix__
|
||||
logstream = fopen(logfilename, "w");
|
||||
#ifdef DEFAULTDIR
|
||||
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
||||
#else
|
||||
link = va("%s/latest-log.txt", logdir);
|
||||
if (logdir)
|
||||
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
||||
else
|
||||
#endif/*DEFAULTDIR*/
|
||||
link = "latest-log.txt";
|
||||
unlink(link);
|
||||
if (symlink(logfilename, link) == -1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue