diff --git a/src/save.c b/src/save.c
index 1e87b4b208144adcf273b8b4f491af73d6219ddf..fda50f90baa7ce53a53d846e2b21fb7c8cda5729 100644 (file)
--- a/src/save.c
+++ b/src/save.c
+/* Copyright (C) 1996-1997 Aleksey Volynskov
+ * Copyright (C) 2011 Rambo
+ * Copyright (C) 2020 SovietPony
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3 of the License ONLY.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#include "save.h"
#include "dots.h"
#include <stdio.h> // FILE
#include <string.h>
-#include <sys/stat.h>
+#ifdef UNIX
+# include <sys/stat.h>
+#endif
#include "files.h"
#include "my.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, "/.doom2d-rembo");
+ strcat(p, "/.flatwaifu");
if (!ro) {
mkdir(p, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
}