mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-28 08:21:31 +00:00
Correct usage of logdir
This commit is contained in:
parent
5d0c19af37
commit
df02a22697
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