Fix a thinko in the save game menu

I thought I had to prepend the gamedir when using QFS_FOpenFile (or
QFS_OpenFile in rua).

Nope, it's gamedir based
This commit is contained in:
Bill Currie 2020-02-26 18:03:00 +09:00
parent 4cec3bbff6
commit 6fccfdf1b9

View file

@ -142,12 +142,13 @@ void (int quick) scan_saves =
max = MAX_QUICK;
basename = "quick";
}
string gamedir = QFS_GetDirectory();
for (i = 0; i < max; i++) {
if (!filenames[i])
filenames[i] = str_new ();
loadable[i] = 0;
f = QFS_OpenFile (sprintf ("%s/%s%i.sav", gamedir, basename, i));
string path = sprintf ("%s%i.sav", basename, i);
dprint(path + "\n");
f = QFS_OpenFile (path);
if (!f) {
str_copy (filenames[i], "--- UNUSED SLOT ---");
continue;