return gamemode string for unknown IWADs (#1702)

This commit is contained in:
Fabian Greffrath 2024-05-24 18:20:10 +02:00 committed by GitHub
parent a8e90456fb
commit b468c19580
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,14 @@ static const iwad_t iwads[] = {
{"rekkrsl.wad", pack_rekkr, retail, "REKKR: Sunken Land" },
};
static const char *const gamemode_str[] = {
"Shareware mode",
"Registered mode",
"Commercial mode",
"Retail mode",
"Unknown mode"
};
// "128 IWAD search directories should be enough for anybody".
#define MAX_IWAD_DIRS 128
@ -872,5 +880,5 @@ const char *D_GetIWADDescription(const char *name, GameMode_t mode,
return iwads[i].description;
}
}
return "Unknown";
return gamemode_str[mode];
}