mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +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__
|
#ifdef __unix__
|
||||||
logstream = fopen(logfilename, "w");
|
logstream = fopen(logfilename, "w");
|
||||||
#ifdef DEFAULTDIR
|
#ifdef DEFAULTDIR
|
||||||
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
if (logdir)
|
||||||
#else
|
link = va("%s/"DEFAULTDIR"/latest-log.txt", logdir);
|
||||||
link = va("%s/latest-log.txt", logdir);
|
else
|
||||||
#endif/*DEFAULTDIR*/
|
#endif/*DEFAULTDIR*/
|
||||||
|
link = "latest-log.txt";
|
||||||
unlink(link);
|
unlink(link);
|
||||||
if (symlink(logfilename, link) == -1)
|
if (symlink(logfilename, link) == -1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue