X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fsave.c;h=fda50f90baa7ce53a53d846e2b21fb7c8cda5729;hb=5ffa796498caf6ade53096515965d5eec272799e;hp=fe52cc4982c6f3985774ed8da7d7aeb2c76e1381;hpb=b56f1875b3e8f5c2dfe1f00e35bc3b103044870a;p=flatwaifu.git diff --git a/src/save.c b/src/save.c index fe52cc4..fda50f9 100644 --- a/src/save.c +++ b/src/save.c @@ -33,7 +33,9 @@ #include // FILE #include -#include +#ifdef UNIX +# include +#endif #include "files.h" #include "my.h" @@ -538,9 +540,9 @@ static void WP_loadgame (FILE *h) { static char *getsavfpname (int n, int ro) { static char fn[] = "savgame0.dat"; - fn[7] = n + '0'; -#ifndef WIN32 static char p[100]; + fn[7] = n + '0'; +#ifdef UNIX char *e = getenv("HOME"); strncpy(p, e, 60); strcat(p, "/.flatwaifu");