ref: 48bda90fc44acb507a663172dc75f872090a8776
parent: 4df980f534a9ebb5dd5091e43cedca41f9574a92
author: Fabian Greffrath <fabian@greffrath.com>
date: Wed Jan 9 03:09:43 EST 2019
omit prefixing the containing WAD file name if its the IWAD
--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -635,9 +635,18 @@
//
static void SetDefaultSaveName(int slot)
{
- M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
- "%s: %s", M_BaseName(maplumpinfo->wad_file->path),
- maplumpinfo->name);
+ // map from IWAD or PWAD?
+ if (maplumpinfo->wad_file == lumpinfo[0]->wad_file)
+ {
+ M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
+ "%s", maplumpinfo->name);
+ }
+ else
+ {
+ M_snprintf(savegamestrings[itemOn], SAVESTRINGSIZE - 1,
+ "%s: %s", M_BaseName(maplumpinfo->wad_file->path),
+ maplumpinfo->name);
+ }
joypadSave = false;
}