X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fsave.c;h=27534214bf681a495663bd351bb60061bcf3c056;hb=0962b688f0f7c5767cd3c3ae247c92fea0b7c7e0;hp=4ffb554521c490f7e198b70d056bdd48ecdff84f;hpb=563dffaf02ff36da4054f937fcc9f99a072e15bf;p=flatwaifu.git diff --git a/src/save.c b/src/save.c index 4ffb554..2753421 100644 --- a/src/save.c +++ b/src/save.c @@ -1,3 +1,20 @@ +/* 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 . + */ + #include "save.h" #include "dots.h" @@ -135,7 +152,7 @@ static void G_loadgame (FILE *h) { } cheat = myfread8(h); myfread(g_music, 8, 1, h); - F_loadmus(g_music); + MUS_load(g_music); } static void IT_savegame (FILE *h) { @@ -521,12 +538,12 @@ static void WP_loadgame (FILE *h) { static char *getsavfpname (int n, int ro) { static char fn[] = "savgame0.dat"; + static char p[100]; fn[7] = n + '0'; #ifndef WIN32 - static char p[100]; 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); }